]> git.baikalelectronics.ru Git - kernel.git/commit
fs: RWF_NOWAIT should imply IOCB_NOIO
authorJens Axboe <axboe@kernel.dk>
Tue, 11 Aug 2020 00:44:24 +0000 (18:44 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 11 Aug 2020 14:09:01 +0000 (08:09 -0600)
commitaa13a515b73d0b95917b5b54ad062fc06d32d536
treeef35b265ada3875915696ee6b3112d5f688ed708
parent20640a8c1bf3d8242afe4216699229f811a6273f
fs: RWF_NOWAIT should imply IOCB_NOIO

With the change allowing read-ahead for IOCB_NOWAIT, we changed the
RWF_NOWAIT semantics of only doing cached reads. Since we know have
IOCB_NOIO to manage that specific side of it, just make RWF_NOWAIT
imply IOCB_NOIO as well to restore the previous behavior.

Fixes: 7be35a09da75 ("mm: allow read-ahead with IOCB_NOWAIT set")
Reported-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
include/linux/fs.h