|
From: | Emanuele Giuseppe Esposito |
Subject: | Re: [PATCH 8/8] virtio-blk: minimize virtio_blk_reset() AioContext lock region |
Date: | Fri, 11 Nov 2022 13:41:49 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0 |
Am 08/11/2022 um 22:19 schrieb Stefan Hajnoczi: > blk_drain() needs the lock because it calls AIO_WAIT_WHILE(). > > The s->rq loop doesn't need the lock because dataplane has been stopped > when virtio_blk_reset() is called. > > Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> > Reviewed-by: Emanuele Giuseppe Esposito <eesposit@redhat.com>
[Prev in Thread] | Current Thread | [Next in Thread] |