Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4364742imm; Mon, 14 May 2018 06:35:33 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoTfuI7cSuw+qllHTHa5DX7oGxpCD8QpYSwZRo4D/+nt+G+7f11Q/CJiBNc1kXKZiz3hd0q X-Received: by 2002:a17:902:a586:: with SMTP id az6-v6mr10129924plb.210.1526304933749; Mon, 14 May 2018 06:35:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526304933; cv=none; d=google.com; s=arc-20160816; b=B++wXlwb9azQMivD0NffTeRv8j5R4N+TOB6a7SHR/TFq3LfBhcMVBHsOekvaL1agt0 girbR9y4jWd/c65O8x9K6PFAmlgcNi4NUlDOYwEZ7MjGKKW7IZuA88lVVM9MpF1XwxSx mxBRC8dEJku8+hmZvm3ChwKNPXtp3+DBN+ZDGdFY67A6o/e28JPB0SoHP/cKWeiquwPk e3CXyja8jyVEX4ZwJ1YFPugUivV50sM/Vvd/A6ItnZw8mLVF+CsABna/xSnDiyai++5q Uw+JGj3rKbwuxR02d7UZ/aZ51PpOOL9V7ghcrCRynbPgjbrP6dwlVo7mJ2ecJFa140V/ ZgUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=9hJR/fRtVzGEqTP2otLF26LoGRR0Y6+xQUFhK8Xm0ZQ=; b=RLCing5IgkLmG+hiTc7dih7igtkj9xHiX8WO5bkNLLVXE+L+RC+3NvPo88scErQpgB 2XCkjvG3Pbu8m/KLizFJ6NQ/GNKPopbuE5zeUzNLI3kDreFLJ1JlalZudJ0kU3oLOlje rn3YuculhIeC2HPTD23aMTAqH/LEkuD05/Ew8VwNcqkqYjf1xpp0RQnAKVgAPiSNaPtL bgqI6C8msZ9UoHVxosUts0GGDs2r7+9sHcbjOkWtV5j5W9GeMAI1tBSrD6nRbLM07cy+ 0Zmj+2ys3oy1Y7nqbvkPE7wSO3kYSVe4aKKJW16ggMB6gEMhJok0xWi8nuqVmNFMObge Bi+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t22-v6si10010254plj.595.2018.05.14.06.35.19; Mon, 14 May 2018 06:35:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932221AbeENNer (ORCPT + 99 others); Mon, 14 May 2018 09:34:47 -0400 Received: from mx2.suse.de ([195.135.220.15]:52534 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752142AbeENNep (ORCPT ); Mon, 14 May 2018 09:34:45 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 46477AB33; Mon, 14 May 2018 13:34:44 +0000 (UTC) Date: Mon, 14 May 2018 15:34:42 +0200 From: Johannes Thumshirn To: "Paul E. McKenney" Cc: Christoph Hellwig , Keith Busch , Sagi Grimberg , Linux Kernel Mailinglist , Linux NVMe Mailinglist , Hannes Reinecke , Christoph Hellwig Subject: Re: [PATCH] nvme: fix lockdep warning in nvme_mpath_clear_current_path Message-ID: <20180514133442.dyvveuxkaeithb4r@linux-x5ow.site> References: <20180514121312.13624-1-jthumshirn@suse.de> <20180514124230.GA654@infradead.org> <20180514133105.GU26088@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20180514133105.GU26088@linux.vnet.ibm.com> User-Agent: NeoMutt/20170912 (1.9.0) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 14, 2018 at 06:31:05AM -0700, Paul E. McKenney wrote: > If you are just looking at the value of an RCU-protected pointer, then > using rcu_access_pointer() will cause RCU to just read out the value > and otherwise keeps its mouth shut. > > If you use rcu_access_pointer() and later dereference the value without > protection, you will of course get what you deserve, good and hard. ;-) Thanks Paul. Christoph, I'll be sending the v2 probably tomorrow as I have more lockdep fixes for nvme in the pipe and I'll send them out as a complete series. -- Johannes Thumshirn Storage jthumshirn@suse.de +49 911 74053 689 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg GF: Felix Imend?rffer, Jane Smithard, Graham Norton HRB 21284 (AG N?rnberg) Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850