Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1369834ybg; Thu, 11 Jun 2020 08:08:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznD1HmotPxO/md0V5LlpR9DEK4zFybIxQtH9icuMuHjr6jSQigV9ENFxTDxNVrFB68I/BO X-Received: by 2002:a17:906:694c:: with SMTP id c12mr8771941ejs.495.1591888095610; Thu, 11 Jun 2020 08:08:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591888095; cv=none; d=google.com; s=arc-20160816; b=ZCcD4VArq7R1C61thyiisijDxsBTyOJCZLBO64taGPzZ9AhtQyakHuWCxtSZ2guKtK c5pdzKxUNY1jg5YT/mz8/UCssa2f8eCAsEFH4ik0J4g87Jd2YtfzHvXlCnm/a3viBjlE 98ovOQxnq9lOQPhxHNv8dCFkd2aqsClUvbgIqF31gM66w4fGmCbQ7sjPEL50UkSM0uzI oNN16JyAdfpSINAlXYj4CjMb/2IwKw5JZhlLAkjVxeFGw+wOTaUW4qTBkdLnoqDVjBPp x2fFYNLT6aQFiax/GkATiiEKeVYgEuZZ8vRBfpUs17RZEjXKXxCyg+cGkX3+8d9LHkOv VIxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=TVMey8PBERiSsGQwYtFE24rZ7GLXAITv8lTt937f7TE=; b=H7Wc17q4e5yI4nshCFEpN5yo0JpiHllao/AekMfIC+4ckBiSmKzmKe2a8fbw2LkiPT 0ZItdhJP6b4ijHWkel4RYt8XG73WAKRwlvidBYRbjCAbotMu5bmF/Rn9FH/dlIqFFfVk FIfrctWIXFf1+O9Psbz986opWf6gZWS+NGi37FuKfTrN4khLbgePlxe9Jira+6vfF2L3 Vw0xAqu5XhBVEWN87XprIBPRLByvNgs2vdoAcy5tS9K+V4W4reBPT+0GiLB1zfB32BcC 1EjYRGxORFZsxZbT+Q+aaM6XFjmZGOOF/HYfzo4xB8FqXn1450iZKne0lgf8xQUakNsa QThw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qw12si2104973ejb.492.2020.06.11.08.07.47; Thu, 11 Jun 2020 08:08:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728454AbgFKPEQ (ORCPT + 99 others); Thu, 11 Jun 2020 11:04:16 -0400 Received: from outgoing-auth-1.mit.edu ([18.9.28.11]:48131 "EHLO outgoing.mit.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728419AbgFKPEP (ORCPT ); Thu, 11 Jun 2020 11:04:15 -0400 Received: from callcc.thunk.org (pool-100-0-195-244.bstnma.fios.verizon.net [100.0.195.244]) (authenticated bits=0) (User authenticated as tytso@ATHENA.MIT.EDU) by outgoing.mit.edu (8.14.7/8.12.4) with ESMTP id 05BF3eIm026407 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 11 Jun 2020 11:03:40 -0400 Received: by callcc.thunk.org (Postfix, from userid 15806) id 0903E4200DD; Thu, 11 Jun 2020 11:03:40 -0400 (EDT) Date: Thu, 11 Jun 2020 11:03:40 -0400 From: "Theodore Y. Ts'o" To: Christoph Hellwig Cc: Ritesh Harjani , linux-ext4@vger.kernel.org, jack@suse.com, Hillf Danton , linux-fsdevel@vger.kernel.org, Borislav Petkov , Marek Szyprowski , syzbot+82f324bb69744c5f6969@syzkaller.appspotmail.com Subject: Re: [PATCHv2 1/1] ext4: mballoc: Use this_cpu_read instead of this_cpu_ptr Message-ID: <20200611150340.GP1347934@mit.edu> References: <534f275016296996f54ecf65168bb3392b6f653d.1591699601.git.riteshh@linux.ibm.com> <20200610062538.GA24975@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200610062538.GA24975@infradead.org> Sender: linux-ext4-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue, Jun 09, 2020 at 11:25:38PM -0700, Christoph Hellwig wrote: > On Tue, Jun 09, 2020 at 04:23:10PM +0530, Ritesh Harjani wrote: > > Simplify reading a seq variable by directly using this_cpu_read API > > instead of doing this_cpu_ptr and then dereferencing it. > > > > This also avoid the below kernel BUG: which happens when > > CONFIG_DEBUG_PREEMPT is enabled > > I see this warning all the time with ext4 using tests VMs, so lets get > this fixed ASAP before -rc1: > > Reviewed-by: Christoph Hellwig Thanks, applied. - Ted