Skip to content

Commit

Permalink
dax: Avoid losing wakeup in dax_lock_mapping_entry
Browse files Browse the repository at this point in the history
After calling get_unlocked_entry(), you have to call
put_unlocked_entry() to avoid subsequent waiters losing wakeups.

Fixes: c2a7d2a ("filesystem-dax: Introduce dax_lock_mapping_entry()")
Cc: [email protected]
Signed-off-by: Matthew Wilcox <[email protected]>
  • Loading branch information
Matthew Wilcox committed Nov 19, 2018
1 parent 0e40de0 commit 25bbe21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/dax.c
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ bool dax_lock_mapping_entry(struct page *page)
rcu_read_unlock();
entry = get_unlocked_entry(&xas);
xas_unlock_irq(&xas);
put_unlocked_entry(&xas, entry);
rcu_read_lock();
continue;
}
Expand Down

0 comments on commit 25bbe21

Please sign in to comment.