mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-26 18:16:26 +00:00
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>
This commit is contained in:
parent
66ac9fe7ba
commit
ee17fc8005
1 changed files with 7 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue