File tree Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Expand file tree Collapse file tree 1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -1133,32 +1133,13 @@ static void folio_wake_bit(struct folio *folio, int bit_nr)
11331133 wait_queue_head_t * q = folio_waitqueue (folio );
11341134 struct wait_page_key key ;
11351135 unsigned long flags ;
1136- wait_queue_entry_t bookmark ;
11371136
11381137 key .folio = folio ;
11391138 key .bit_nr = bit_nr ;
11401139 key .page_match = 0 ;
11411140
1142- bookmark .flags = 0 ;
1143- bookmark .private = NULL ;
1144- bookmark .func = NULL ;
1145- INIT_LIST_HEAD (& bookmark .entry );
1146-
11471141 spin_lock_irqsave (& q -> lock , flags );
1148- __wake_up_locked_key_bookmark (q , TASK_NORMAL , & key , & bookmark );
1149-
1150- while (bookmark .flags & WQ_FLAG_BOOKMARK ) {
1151- /*
1152- * Take a breather from holding the lock,
1153- * allow pages that finish wake up asynchronously
1154- * to acquire the lock and remove themselves
1155- * from wait queue
1156- */
1157- spin_unlock_irqrestore (& q -> lock , flags );
1158- cpu_relax ();
1159- spin_lock_irqsave (& q -> lock , flags );
1160- __wake_up_locked_key_bookmark (q , TASK_NORMAL , & key , & bookmark );
1161- }
1142+ __wake_up_locked_key (q , TASK_NORMAL , & key );
11621143
11631144 /*
11641145 * It's possible to miss clearing waiters here, when we woke our page
You can’t perform that action at this time.
0 commit comments