aboutsummaryrefslogtreecommitdiff
path: root/fs/attr.c
diff options
context:
space:
mode:
authorGravatar Jens Axboe <axboe@kernel.dk> 2020-08-25 12:27:50 -0600
committerGravatar Jens Axboe <axboe@kernel.dk> 2020-08-25 12:27:50 -0600
commit9dab14b81807a40dab8e464ec87043935c562c2c (patch)
treeee5aaa05cb9cbcd504f81dcb77cbb46675f00d0d /fs/attr.c
parentio_uring: fix imbalanced sqo_mm accounting (diff)
downloadlinux-9dab14b81807a40dab8e464ec87043935c562c2c.tar.gz
linux-9dab14b81807a40dab8e464ec87043935c562c2c.tar.bz2
linux-9dab14b81807a40dab8e464ec87043935c562c2c.zip
io_uring: don't use poll handler if file can't be nonblocking read/written
There's no point in using the poll handler if we can't do a nonblocking IO attempt of the operation, since we'll need to go async anyway. In fact this is actively harmful, as reading from eg pipes won't return 0 to indicate EOF. Cc: stable@vger.kernel.org # v5.7+ Reported-by: Benedikt Ames <wisp3rwind@posteo.eu> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/attr.c')
0 files changed, 0 insertions, 0 deletions