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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Apr 2021 09:43:21 +0000 (11:43 +0200)
commit6fbdce3cde97896ff4c2fb99e5d4bba45297a178
tree847d3f8d0ac1cee0fac8403ede9ac62511a96859
parent5d4600017beeab73e0d5550f9485564fba66b460
io_uring: don't mark S_ISBLK async work as unbounded

[ Upstream commit 4b982bd0f383db9132e892c0c5144117359a6289 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/io_uring.c