Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758643Ab2BNBL5 (ORCPT ); Mon, 13 Feb 2012 20:11:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22586 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751048Ab2BNBLz (ORCPT ); Mon, 13 Feb 2012 20:11:55 -0500 Date: Tue, 14 Feb 2012 03:11:45 +0200 From: "Michael S. Tsirkin" To: ronnie sahlberg Cc: Hannes Reinecke , Dor Laor , "Nicholas A. Bellinger" , Christian Borntraeger , James Bottomley , Paolo Bonzini , 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 Message-ID: <20120214011144.GB5192@redhat.com> References: <20120213130005.GB26773@redhat.com> <20120213131848.GD26773@redhat.com> <4F39287A.9030808@suse.de> <20120213225623.GA2988@redhat.com> <20120213233334.GC4430@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 998 Lines: 34 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 > > > This is what it does for removable SBC disks. Maybe it does something > differently for "permanent" SBC disks. > > regards > ronnie sahlberg There used to be a daemon for this. -- 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/