diff options
author | Jens Axboe <axboe@kernel.dk> | 2020-08-04 01:06:21 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2020-08-04 01:39:37 +0200 |
commit | cbd287c09351f1d3a4b3cb9167a2616a11390d32 (patch) | |
tree | 5ab23f117751c2e65a153c6fd03d91ad704bd3e7 /fs/io_uring.c | |
parent | Merge tag 'sched-core-2020-08-03' of git://git.kernel.org/pub/scm/linux/kerne... (diff) | |
download | linux-cbd287c09351f1d3a4b3cb9167a2616a11390d32.tar.xz linux-cbd287c09351f1d3a4b3cb9167a2616a11390d32.zip |
io_uring: io_async_buf_func() need not test page bit
Since we don't do exclusive waits or wakeups, we know that the bit is
always going to be set. Kill the test. Also see commit:
2a9127fcf229 ("mm: rewrite wait_on_page_bit_common() logic")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/io_uring.c')
-rw-r--r-- | fs/io_uring.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/io_uring.c b/fs/io_uring.c index 2a3af95be4ca..bb4f0b2d5138 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -2965,10 +2965,6 @@ static int io_async_buf_func(struct wait_queue_entry *wait, unsigned mode, if (!wake_page_match(wpq, key)) return 0; - /* Stop waking things up if the page is locked again */ - if (test_bit(key->bit_nr, &key->page->flags)) - return -1; - list_del_init(&wait->entry); init_task_work(&req->task_work, io_req_task_submit); |