Re: [PATCH 4/6] btrfs: use RCU in btrfs_show_devname for device list traversal

2018-03-27 Thread Anand Jain
On 03/28/2018 02:48 AM, David Sterba wrote: The show_devname callback is used to print device name in /proc/self/mounts, we need to traverse the device list consistently and read the name that's copied to a seq buffer so we don't need further locking. If the first device is being deleted at

[PATCH 4/6] btrfs: use RCU in btrfs_show_devname for device list traversal

2018-03-27 Thread David Sterba
The show_devname callback is used to print device name in /proc/self/mounts, we need to traverse the device list consistently and read the name that's copied to a seq buffer so we don't need further locking. If the first device is being deleted at the same time, the RCU will allow us to read the