linux-aio: Handle io_submit() failure gracefully
commit44713c9e8547f0ff41e3e257f0dd5c17bb497225
authorKevin Wolf <kwolf@redhat.com>
Tue, 9 Aug 2016 11:20:19 +0000 (9 13:20 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 11 Aug 2016 08:42:35 +0000 (11 09:42 +0100)
tree7c5a9bf11041872e2051b821439dbd57b1f532c1
parentd08306dc42ea599ffcf8aad056fa9c23acfbe230
linux-aio: Handle io_submit() failure gracefully

It is generally not expected that io_submit() fails other than with
-EAGAIN, but corner cases like SELinux refusing I/O when permissions are
revoked are still possible. In this case, we shouldn't abort, but just
return an I/O error for the request.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-id: 1470741619-23231-1-git-send-email-kwolf@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/linux-aio.c