btrfs: introduce conditional wakeup helpers
authorDavid Sterba <dsterba@suse.com>
Mon, 26 Feb 2018 14:43:18 +0000 (15:43 +0100)
committerDavid Sterba <dsterba@suse.com>
Mon, 28 May 2018 16:23:04 +0000 (18:23 +0200)
commit110a21feedd78d398598d91be57db60e19b76fe0
tree800b5024cefc1e8a9678a0a9edbc3fa84ebada91
parentff3d27a048d926b3920ccdb75d98788c567cae0d
btrfs: introduce conditional wakeup helpers

Add convenience wrappers for the waitqueue management that involves
memory barriers to prevent deadlocks. The helpers will let us remove
barriers and the necessary comments in several places.

Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/ctree.h