Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756835AbbEVL4G (ORCPT ); Fri, 22 May 2015 07:56:06 -0400 Received: from verein.lst.de ([213.95.11.211]:33323 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755977AbbEVL4D (ORCPT ); Fri, 22 May 2015 07:56:03 -0400 Date: Fri, 22 May 2015 13:56:01 +0200 From: Christoph Hellwig To: "Nicholas A. Bellinger" Cc: target-devel , linux-scsi , linux-kernel , Christoph Hellwig , Nicholas Bellinger Subject: Re: [PATCH 2/4] target: Drop lun_sep_lock for se_lun->lun_se_dev RCU usage Message-ID: <20150522115601.GB29155@lst.de> References: <1432278417-29994-1-git-send-email-nab@daterainc.com> <1432278417-29994-3-git-send-email-nab@daterainc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432278417-29994-3-git-send-email-nab@daterainc.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 548 Lines: 15 > @@ -683,7 +679,7 @@ void core_tpg_remove_lun( > dev->export_count--; > spin_unlock(&dev->se_port_lock); > > - lun->lun_se_dev = NULL; > + rcu_assign_pointer(lun->lun_se_dev, NULL); > } What guarantees that the se_device stays around for at least a RCU grace period after this assignment? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/