block: Don't let locked flag prevent medium load
authorMarkus Armbruster <armbru@redhat.com>
Wed, 20 Jul 2011 16:23:43 +0000 (18:23 +0200)
committerKevin Wolf <kwolf@redhat.com>
Mon, 1 Aug 2011 10:10:28 +0000 (12:10 +0200)
commit4da3720f5a572cab931c430dc3f592df5dd05ec4
treebf66b985e9fbe0c270861fbfd5d7601235a5095c
parent632183d38ed844f741423180b20499192179803c
block: Don't let locked flag prevent medium load

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 <armbru@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block.c