]> asedeno.scripts.mit.edu Git - linux.git/commit
dax: Use non-exclusive wait in wait_entry_unlocked()
authorDan Williams <dan.j.williams@intel.com>
Fri, 21 Dec 2018 19:35:53 +0000 (11:35 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 21 Dec 2018 19:35:53 +0000 (11:35 -0800)
commitd8a706414af4827fc0b4b1c0c631c607351938b9
tree391f47712243481ab637dfb0ba4a9c73aea99d54
parent7566ec393f4161572ba6f11ad5171fd5d59b0fbd
dax: Use non-exclusive wait in wait_entry_unlocked()

get_unlocked_entry() uses an exclusive wait because it is guaranteed to
eventually obtain the lock and follow on with an unlock+wakeup cycle.
The wait_entry_unlocked() path does not have the same guarantee. Rather
than open-code an extra wakeup, just switch to a non-exclusive wait.

Cc: Jan Kara <jack@suse.cz>
Cc: Matthew Wilcox <willy@infradead.org>
Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c