Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759981Ab2BNJ55 (ORCPT ); Tue, 14 Feb 2012 04:57:57 -0500 Received: from mail-pw0-f46.google.com ([209.85.160.46]:45628 "EHLO mail-pw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754178Ab2BNJ5w (ORCPT ); Tue, 14 Feb 2012 04:57:52 -0500 Message-ID: <4F3A3017.4060202@redhat.com> Date: Tue, 14 Feb 2012 10:57:43 +0100 From: Paolo Bonzini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0) Gecko/20120131 Thunderbird/10.0 MIME-Version: 1.0 To: "Michael S. Tsirkin" CC: ronnie sahlberg , Hannes Reinecke , Dor Laor , "Nicholas A. Bellinger" , Christian Borntraeger , James Bottomley , Christian Hoff , borntrae@linux.vnet.ibm.com, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, rusty@rustcorp.com.au, Stefan Hajnoczi , target-devel Subject: Re: Pe: [PATCH v5 1/3] virtio-scsi: first version References: <20120213130005.GB26773@redhat.com> <20120213131848.GD26773@redhat.com> <4F39287A.9030808@suse.de> <20120213225623.GA2988@redhat.com> <20120213233334.GC4430@redhat.com> <20120214011144.GB5192@redhat.com> In-Reply-To: <20120214011144.GB5192@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1271 Lines: 35 On 02/14/2012 02:11 AM, Michael S. Tsirkin wrote: > On Tue, Feb 14, 2012 at 11:49:55AM +1100, ronnie sahlberg wrote: >> By just exposing this device to the kernel, the kernel keeps sending, >> or if not the kernel maybe some other process trying to poll the >> status? >> >> every few seconds : >> PREVENT_ALLOW_MEDIUM_REMOVAL prevent removal >> PREVENT_ALLOW_MEDIUM_REMOVAL to immediatel change it back to allow >> removal again >> TEST_UNIT_READY >> >> >> After I run this >> mount /dev/sdd1 /mnt >> >> The kernel sends a single >> PREVENT_ALLOW_MEDIUM_REMOVAL to prevent removal >> then every few seconds a >> TEST_UNIT_READY Sorry to interrupt you again guys, but: the discussion started with virtio-blk hotplug and now we're talking about SCSI commands? Sure somebody switched topic at some point :) and anyway this is irrelevant to what virtio-blk can/cannot do. BTW, for virtio-scsi the spec provides a way to do hotplug and hotunplug without any polling, though it's not implemented yet in the driver. Paolo -- 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/