diff options
Diffstat (limited to 'fs/btrfs/volumes.c')
| -rw-r--r-- | fs/btrfs/volumes.c | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 6b9cff42265..5989a92236f 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -684,6 +684,12 @@ int btrfs_close_devices(struct btrfs_fs_devices *fs_devices)  		__btrfs_close_devices(fs_devices);  		free_fs_devices(fs_devices);  	} +	/* +	 * Wait for rcu kworkers under __btrfs_close_devices +	 * to finish all blkdev_puts so device is really +	 * free when umount is done. +	 */ +	rcu_barrier();  	return ret;  } |