Commit ee17fc80 authored by David Sterba's avatar David Sterba
Browse files

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: default avatarDavid Sterba <dsterba@suse.com>
parent 66ac9fe7
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment