diff options
author | Anand Jain <Anand.Jain@oracle.com> | 2016-07-22 01:04:53 +0300 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2016-08-25 13:58:28 +0300 |
commit | 142388194191a3edc9ba01cfcfd8b691e0971fb2 (patch) | |
tree | 74a124de8b642896e249df532305b3f1cf317869 /kernel/Kconfig.preempt | |
parent | 28b737f6ede3661fe610937706c4a6f50e9ab769 (diff) | |
download | linux-142388194191a3edc9ba01cfcfd8b691e0971fb2.tar.xz |
btrfs: do not background blkdev_put()
At the end of unmount/dev-delete, if the device exclusive open is not
actually closed, then there might be a race with another program in
the userland who is trying to open the device in exclusive mode and
it may fail for eg:
unmount /btrfs; fsck /dev/x
btrfs dev del /dev/x /btrfs; fsck /dev/x
so here background blkdev_put() is not a choice
Signed-off-by: Anand Jain <Anand.Jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'kernel/Kconfig.preempt')
0 files changed, 0 insertions, 0 deletions