diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-11-16 13:36:24 -0700 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-11-16 13:39:34 -0700 |
commit | 0abed7c69b956d135cb6d320c350b2adb213e7d8 (patch) | |
tree | aacd8b10ea45a282d1a9811cd6d8b32fe36a8506 /kernel/kcov.c | |
parent | 944d1444d53f5a213457e5096db370cfd06923d4 (diff) | |
download | linux-0abed7c69b956d135cb6d320c350b2adb213e7d8.tar.gz linux-0abed7c69b956d135cb6d320c350b2adb213e7d8.tar.bz2 linux-0abed7c69b956d135cb6d320c350b2adb213e7d8.zip |
mm: never attempt async page lock if we've transferred data already
We catch the case where we enter generic_file_buffered_read() with data
already transferred, but we also need to be careful not to allow an async
page lock if we're looping transferring data. If not, we could be
returning -EIOCBQUEUED instead of the transferred amount, and it could
result in double waitqueue additions as well.
Cc: stable@vger.kernel.org # v5.9
Fixes: 1a0a7853b901 ("mm: support async buffered reads in generic_file_buffered_read()")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/kcov.c')
0 files changed, 0 insertions, 0 deletions