commit | faac996ccd5da95bc56b91aa80f2643c2d0a1c56 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Fri Feb 07 15:45:22 2020 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Sat Feb 08 13:06:58 2020 -0700 |
tree | c72e65a137a614e78055b7460e96c719f9488bb0 | |
parent | 8fef80bf56a49c60b457dedb99fd6c5279a5dbe1 [diff] |
io_uring: retry raw bdev writes if we hit -EOPNOTSUPP For non-blocking issue, we set IOCB_NOWAIT in the kiocb. However, on a raw block device, this yields an -EOPNOTSUPP return, as non-blocking writes aren't supported. Turn this -EOPNOTSUPP into -EAGAIN, so we retry from blocking context with IOCB_NOWAIT cleared. Cc: stable@vger.kernel.org # 5.5 Signed-off-by: Jens Axboe <axboe@kernel.dk>