Files
android_kernel_xiaomi_sm8450/fs
Jens Axboe 491381ce07 io_uring: fix up O_NONBLOCK handling for sockets
We've got two issues with the non-regular file handling for non-blocking
IO:

1) We don't want to re-do a short read in full for a non-regular file,
   as we can't just read the data again.
2) For non-regular files that don't support non-blocking IO attempts,
   we need to punt to async context even if the file is opened as
   non-blocking. Otherwise the caller always gets -EAGAIN.

Add two new request flags to handle these cases. One is just a cache
of the inode S_ISREG() status, the other tells io_uring that we always
need to punt this request to async context, even if REQ_F_NOWAIT is set.

Cc: stable@vger.kernel.org
Reported-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Tested-by: Hrvoje Zeba <zeba.hrvoje@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2019-10-17 15:49:11 -06:00
..
2019-08-30 07:27:18 -07:00
2019-09-02 11:43:54 +01:00
2019-09-24 15:28:02 +02:00
2019-07-03 17:52:09 -04:00
2019-09-24 15:54:11 -07:00
2019-08-30 08:11:25 -07:00
2019-04-08 18:21:02 -05:00
2019-02-07 16:38:35 +01:00
2019-08-01 20:51:23 +02:00