Received: from eggs.gnu.org ([140.186.70.92]:52097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkHjn-0005ii-DR for qemu-devel@nongnu.org; Fri, 22 Jul 2011 11:34:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QkHjm-0004Qn-Ic for qemu-devel@nongnu.org; Fri, 22 Jul 2011 11:34:03 -0400 Received: from mx1.redhat.com ([209.132.183.28]:11295) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QkHjm-0004Qf-9p for qemu-devel@nongnu.org; Fri, 22 Jul 2011 11:34:02 -0400 From: Markus Armbruster References: <1311179069-27882-1-git-send-email-armbru@redhat.com> <1311179069-27882-10-git-send-email-armbru@redhat.com> <4E298E82.4000802@redhat.com> Date: Fri, 22 Jul 2011 17:33:56 +0200 In-Reply-To: <4E298E82.4000802@redhat.com> (Kevin Wolf's message of "Fri, 22 Jul 2011 16:51:46 +0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [Qemu-devel] [PATCH 09/55] block: Don't let locked flag prevent medium load List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: quintela@redhat.com, dbaryshkov@gmail.com, stefano.stabellini@eu.citrix.com, qemu-devel@nongnu.org, lcapitulino@redhat.com, amit.shah@redhat.com Kevin Wolf writes: > Am 20.07.2011 18:23, schrieb Markus Armbruster: >> Commit aea2a33c made bdrv_eject() obey the locked flag. Correct for >> medium eject (eject_flag set), incorrect for medium load (eject_flag >> clear). See MMC-5 Table 341 "Actions for Lock/Unlock/Eject". >> >> Signed-off-by: Markus Armbruster > > SCSI doesn't really matter here, this is about host state. The comment > for bdrv_set_locked only talks about eject, so it's probably right anyway. For what it's worth, PATCH 28/55 moves this check to the device models, where MMC-5 clearly applies.