Skip to content

Commit

Permalink
io_uring: io_async_buf_func() need not test page bit
Browse files Browse the repository at this point in the history
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:

2a9127f ("mm: rewrite wait_on_page_bit_common() logic")

Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Jens Axboe committed Aug 3, 2020
1 parent e4cbce4 commit cbd287c
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions fs/io_uring.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit cbd287c

Please sign in to comment.