diff options
author | Matthew Wilcox <willy@infradead.org> | 2018-11-16 21:50:02 +0100 |
---|---|---|
committer | Matthew Wilcox <willy@infradead.org> | 2018-11-19 15:40:58 +0100 |
commit | 25bbe21bf427a81b8e3ccd480ea0e1d940256156 (patch) | |
tree | 7ff0a4b75ca42c59b35c3ee77a6fc7fd131fb3f2 | |
parent | dax: Fix huge page faults (diff) | |
download | linux-25bbe21bf427a81b8e3ccd480ea0e1d940256156.tar.xz linux-25bbe21bf427a81b8e3ccd480ea0e1d940256156.zip |
dax: Avoid losing wakeup in dax_lock_mapping_entry
After calling get_unlocked_entry(), you have to call
put_unlocked_entry() to avoid subsequent waiters losing wakeups.
Fixes: c2a7d2a11552 ("filesystem-dax: Introduce dax_lock_mapping_entry()")
Cc: stable@vger.kernel.org
Signed-off-by: Matthew Wilcox <willy@infradead.org>
-rw-r--r-- | fs/dax.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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; } |