Skip to content
Commit faac996c authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent 8fef80bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment