From mboxrd@z Thu Jan 1 00:00:00 1970 From: James Bottomley Subject: Re: [PATCH-v2] virtio-scsi: Add vdrv->scan for post VIRTIO_CONFIG_S_DRIVER_OK LUN scanning Date: Thu, 12 Jul 2012 07:23:50 +0000 Message-ID: <1342077828.3021.1.camel__5400.00239057026$1342460699$gmane$org@dabdike.int.hansenpartnership.com> References: <1342041736-30043-1-git-send-email-nab@linux-iscsi.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1342041736-30043-1-git-send-email-nab@linux-iscsi.org> Content-Language: en-US Content-ID: <70DBEFFB34AC3441A72A54E8983784BA@sw.swsoft.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: virtualization-bounces@lists.linux-foundation.org Errors-To: virtualization-bounces@lists.linux-foundation.org To: "Nicholas A. Bellinger" Cc: Stefan Hajnoczi , kvm-devel , lf-virt , target-devel , linux-scsi , Paolo Bonzini , Zhi Yong Wu , Christoph Hellwig List-Id: virtualization@lists.linuxfoundation.org On Wed, 2012-07-11 at 21:22 +0000, Nicholas A. Bellinger wrote: > From: Nicholas Bellinger > > This patch changes virtio-scsi to use a new virtio_driver->scan() callback > so that scsi_scan_host() can be properly invoked once virtio_dev_probe() has > set add_status(dev, VIRTIO_CONFIG_S_DRIVER_OK) to signal active virtio-ring > operation, instead of from within virtscsi_probe(). > > This fixes a bug where SCSI LUN scanning for both virtio-scsi-raw and > virtio-scsi/tcm_vhost setups was happening before VIRTIO_CONFIG_S_DRIVER_OK > had been set, causing VIRTIO_SCSI_S_BAD_TARGET to occur. This fixes a bug > with virtio-scsi/tcm_vhost where LUN scan was not detecting LUNs. > > Tested with virtio-scsi-raw + virtio-scsi/tcm_vhost w/ IBLOCK on 3.5-rc2 code. > > (nab: Fix up minor apply fuzz against scsi.git/misc) > > Cc: Paolo Bonzini > Cc: Stefan Hajnoczi > Cc: Zhi Yong Wu > Cc: Christoph Hellwig > Cc: Hannes Reinecke > Cc: James Bottomley > Signed-off-by: Nicholas Bellinger Was the change so great that it needs re acking? I assume it also now no longer applies to stable because it will reject? James