dax: Avoid losing wakeup in dax_lock_mapping_entry
commite7a121e34c79bca171e5076a4c30a17d9966e88f
authorMatthew Wilcox <willy@infradead.org>
Fri, 16 Nov 2018 20:50:02 +0000 (16 15:50 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 1 Dec 2018 08:37:34 +0000 (1 09:37 +0100)
tree131935bc87e11b41128cff1797bbf16af65bfd60
parent9dec38554aa876700acb851b35ee0c5e28841e03
dax: Avoid losing wakeup in dax_lock_mapping_entry

commit 25bbe21bf427a81b8e3ccd480ea0e1d940256156 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/dax.c