diff options
author | David Sterba <dsterba@suse.com> | 2016-04-26 17:22:06 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-06 16:22:49 +0300 |
commit | ee17fc8005287d2d6ca7cab6e814e5043d773735 (patch) | |
tree | 17d8f4c3a5bf27587fa7dadf730a2ef4f88798cd /fs/btrfs/volumes.c | |
parent | 66ac9fe7bacf9fa76c472efc7a7aaa590c7bce6a (diff) | |
download | linux-ee17fc8005287d2d6ca7cab6e814e5043d773735.tar.xz |
btrfs: sysfs: protect reading label by lock
If the label setting ioctl races with sysfs label handler, we could get
mixed result in the output, part old part new. We should either get the
old or new label. The chances to hit this race are low.
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
0 files changed, 0 insertions, 0 deletions