diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/locks.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/locks.c b/fs/locks.c index c7c69d29a576..282b6c11670a 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
@@ -534,7 +534,9 @@ static void locks_insert_block(struct file_lock *blocker, | |||
534 | static void locks_wake_up_blocks(struct file_lock *blocker) | 534 | static void locks_wake_up_blocks(struct file_lock *blocker) |
535 | { | 535 | { |
536 | while (!list_empty(&blocker->fl_block)) { | 536 | while (!list_empty(&blocker->fl_block)) { |
537 | struct file_lock *waiter = list_entry(blocker->fl_block.next, | 537 | struct file_lock *waiter; |
538 | |||
539 | waiter = list_first_entry(&blocker->fl_block, | ||
538 | struct file_lock, fl_block); | 540 | struct file_lock, fl_block); |
539 | __locks_delete_block(waiter); | 541 | __locks_delete_block(waiter); |
540 | if (waiter->fl_lmops && waiter->fl_lmops->fl_notify) | 542 | if (waiter->fl_lmops && waiter->fl_lmops->fl_notify) |