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)
1133
1133
wait_queue_head_t * q = folio_waitqueue (folio );
1134
1134
struct wait_page_key key ;
1135
1135
unsigned long flags ;
1136
- wait_queue_entry_t bookmark ;
1137
1136
1138
1137
key .folio = folio ;
1139
1138
key .bit_nr = bit_nr ;
1140
1139
key .page_match = 0 ;
1141
1140
1142
- bookmark .flags = 0 ;
1143
- bookmark .private = NULL ;
1144
- bookmark .func = NULL ;
1145
- INIT_LIST_HEAD (& bookmark .entry );
1146
-
1147
1141
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 );
1162
1143
1163
1144
/*
1164
1145
* 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