From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 2/5] tcm: Unify INQUIRY subsystem plugin handling Date: Thu, 14 Oct 2010 11:26:01 +0200 Message-ID: <20101014092601.GB28446@lst.de> References: <1286959681-3445-1-git-send-email-nab@linux-iscsi.org> <20101013110653.GA26366@lst.de> <1287001189.7334.47.camel@haakon2.linux-iscsi.org> <20101014000421.GB15583@lst.de> <1287030937.9909.30.camel@haakon2.linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <1287030937.9909.30.camel@haakon2.linux-iscsi.org> Sender: linux-kernel-owner@vger.kernel.org To: "Nicholas A. Bellinger" Cc: Christoph Hellwig , linux-scsi , linux-kernel , FUJITA Tomonori , Mike Christie , Hannes Reinecke , James Bottomley , Boaz Harrosh , Jens Axboe , "Martin K. Petersen" , Douglas Gilbert , Richard Sharpe List-Id: linux-scsi@vger.kernel.org On Wed, Oct 13, 2010 at 09:35:37PM -0700, Nicholas A. Bellinger wrote: > So you would rather have struct se_device attributes set in TCM > subsystem specific ->create_virtdevice() code directly after > transport_add_device_to_core_hba() -> se_dev_set_default_attribs(), > right..? Actually you would want to set them before transport_add_device_to_core_hba. Always make sure an object is fully set up before making it accessible.