diff options
author | David Sterba <dsterba@suse.com> | 2015-02-16 19:41:40 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-10-10 18:42:00 +0200 |
commit | ee86395458072760d62e66aad10a5e9e8902b8cf (patch) | |
tree | b3293bde46967a886b5d066028c5eceebd810dac /fs/btrfs/volumes.c | |
parent | 779adf0f647651f5a45eeee3442c881300ce989e (diff) | |
download | linux-ee86395458072760d62e66aad10a5e9e8902b8cf.tar.gz linux-ee86395458072760d62e66aad10a5e9e8902b8cf.tar.bz2 linux-ee86395458072760d62e66aad10a5e9e8902b8cf.zip |
btrfs: comment the rest of implicit barriers before waitqueue_active
There are atomic operations that imply the barrier for waitqueue_active
mixed in an if-condition.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 6fc735869c18..ff3527192409 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -345,6 +345,9 @@ loop_lock: pending = pending->bi_next; cur->bi_next = NULL; + /* + * atomic_dec_return implies a barrier for waitqueue_active + */ if (atomic_dec_return(&fs_info->nr_async_bios) < limit && waitqueue_active(&fs_info->async_submit_wait)) wake_up(&fs_info->async_submit_wait); |