Received: from eggs.gnu.org ([2001:4830:134:3::10]:38154) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZePFp-0004Aw-LN for qemu-devel@nongnu.org; Tue, 22 Sep 2015 11:13:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZePFo-0003HA-S0 for qemu-devel@nongnu.org; Tue, 22 Sep 2015 11:13:13 -0400 Date: Tue, 22 Sep 2015 17:13:01 +0200 From: Kevin Wolf Message-ID: <20150922151301.GJ3999@noname.str.redhat.com> References: <1442589793-7105-1-git-send-email-mreitz@redhat.com> <1442589793-7105-20-git-send-email-mreitz@redhat.com> <20150922143012.GE3999@noname.str.redhat.com> <56016E3A.1020702@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="LQksG6bCIzRHxTLp" Content-Disposition: inline In-Reply-To: <56016E3A.1020702@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 19/38] block: Fail requests to empty BlockBackend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Alberto Garcia , qemu-block@nongnu.org, John Snow , qemu-devel@nongnu.org, Markus Armbruster , Stefan Hajnoczi --LQksG6bCIzRHxTLp Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Am 22.09.2015 um 17:05 hat Max Reitz geschrieben: > On 22.09.2015 16:30, Kevin Wolf wrote: > > Am 18.09.2015 um 17:22 hat Max Reitz geschrieben: > >> If there is no BlockDriverState in a BlockBackend or if the tray of the > >> guest device is open, fail all requests (where that is possible) with > >> -ENOMEDIUM. > >> > >> The reason the status of the guest device is taken into account is > >> because once the guest device's tray is opened, any request on the same > >> BlockBackend as the guest uses should fail. If the BDS tree is supposed > >> to be usable even after ejecting it from the guest, a different > >> BlockBackend must be used. > >> > >> Signed-off-by: Max Reitz > >> Reviewed-by: Eric Blake > >=20 > > Do we want to include blk_drain() to make it a no-op instead of > > crashing? >=20 > Yes, we do, so that would be in patch 20. Thanks for catching that. >=20 > > Also, we're now introducing BlockAIOCBs with a NULL bs with your use of > > abort_aio_request. I haven't carefully reviewed the implications of this > > yet, but that should definitely be done before we merge the series. >=20 > That should be patch 12. Yes, you caught me reviewing just correctness, but not completeness of patch 12. Kevin --LQksG6bCIzRHxTLp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJWAW/9AAoJEH8JsnLIjy/WqZgP/iA7B4gOmjZa5XpfzURuAyJ5 sHbds3yZAXzlffI8LDA7MscY5ugd+hm0IFzRfl1HfngyPdsCXCTkMufs+H4GImHs vQ/kBpsFJjxwFtDmrAU86z1jl/f7i6CT/K9Wk+DsPlxQ2L1+hhLO0h4TkOYjDcyK zdi3uW9h9DLSiJI7tx5RexKh6asG37TE8Hk31GsScreWThpRnIStrk6o9IlmD/QP Ii/9u/CeC/L5pl5FokJLWtD1Hg6Gp6k5NpILa7JiqUp0bJ8cptGSXgeGlTMh/rHA xOcDzc+qUI4E7y/Zd4ERP9sWHutJnp8jUTz2GNvDDbR4gZ71su9z8AInPTzbV7y8 Otcg/xYjk71hxkzc4fpPh3vx5vGwMP/QVL1VFdvpxtWbQEGLAju+KVHohsgIvxaJ Z7rfjnVJBMcaUwWD24i9H4QT1bDcuuTCijn2GQBS+2cpgYdi9cw0enaMr9Da8sqn Sb9I2Gr0zvuqP2Yvfe93HGRDVFVKLlZ2g1Ub28m8/4lXdH2J9YJaF1/pNtguxgCx 82bgK07O8jcoG/emYtixn0e9/J2BQ09mZRwcJWvkqdxMwCfZ61nXmNGn1o03yN2S COyFw1bBgf9ob1JMm3X/TMSvYpl7A1lKIppL/PTBnjx02r9vdwNekuJuVyPrgDE4 dpoqe329MQeQFRpH/ntl =l7Ds -----END PGP SIGNATURE----- --LQksG6bCIzRHxTLp--