OSDN Git Service

dax: Avoid losing wakeup in dax_lock_mapping_entry
authorMatthew Wilcox <willy@infradead.org>
Fri, 16 Nov 2018 20:50:02 +0000 (15:50 -0500)
committerMatthew Wilcox <willy@infradead.org>
Mon, 19 Nov 2018 14:40:58 +0000 (09:40 -0500)
commit25bbe21bf427a81b8e3ccd480ea0e1d940256156
tree7ff0a4b75ca42c59b35c3ee77a6fc7fd131fb3f2
parent0e40de0338d005f73d46898a21544cd26f01b4ce
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>
fs/dax.c