Skip to content

Commit cbd287c

Browse files
committed
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: 2a9127f ("mm: rewrite wait_on_page_bit_common() logic") Signed-off-by: Jens Axboe <[email protected]>
1 parent e4cbce4 commit cbd287c

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

fs/io_uring.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2965,10 +2965,6 @@ static int io_async_buf_func(struct wait_queue_entry *wait, unsigned mode,
29652965
if (!wake_page_match(wpq, key))
29662966
return 0;
29672967

2968-
/* Stop waking things up if the page is locked again */
2969-
if (test_bit(key->bit_nr, &key->page->flags))
2970-
return -1;
2971-
29722968
list_del_init(&wait->entry);
29732969

29742970
init_task_work(&req->task_work, io_req_task_submit);

0 commit comments

Comments
 (0)