]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: don't mark S_ISBLK async work as unbounded
authorJens Axboe <axboe@kernel.dk>
Thu, 1 Apr 2021 14:38:34 +0000 (08:38 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 1 Apr 2021 14:56:28 +0000 (08:56 -0600)
commitddcf0c7b38306a7c70e23b0597caf0f75c9ccc72
tree9b069f16d20a21e408f6d3821372f0c7acdf9d3d
parent676e4ad9fba0fb94a293fbe8598bbc3e13d66ad4
io_uring: don't mark S_ISBLK async work as unbounded

S_ISBLK is marked as unbounded work for async preparation, because it
doesn't match S_ISREG. That is incorrect, as any read/write to a block
device is also a bounded operation. Fix it up and ensure that S_ISBLK
isn't marked unbounded.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c