[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v2 12/16] virtio-blk: Request BLK_PERM_AIO_CONTE
From: |
Stefan Hajnoczi |
Subject: |
Re: [Qemu-block] [PATCH v2 12/16] virtio-blk: Request BLK_PERM_AIO_CONTEXT_CHANGE for dataplane |
Date: |
Thu, 11 May 2017 16:29:55 -0400 |
User-agent: |
Mutt/1.8.0 (2017-02-23) |
On Wed, Apr 19, 2017 at 05:43:52PM +0800, Fam Zheng wrote:
> blk_set_aio_context is audited by perm API, so follow the protocol and
> request for permission first.
>
> Previously the return code in error path was hardcoded as -EPERM, but
> returning 'r' is more meaningful here both for the new error and
> existing ones.
>
> Signed-off-by: Fam Zheng <address@hidden>
> ---
> hw/block/dataplane/virtio-blk.c | 15 +++++++++++----
> 1 file changed, 11 insertions(+), 4 deletions(-)
Reviewed-by: Stefan Hajnoczi <address@hidden>
signature.asc
Description: PGP signature
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Qemu-block] [PATCH v2 12/16] virtio-blk: Request BLK_PERM_AIO_CONTEXT_CHANGE for dataplane,
Stefan Hajnoczi <=