diff options
author | 2009-08-03 23:28:06 +0200 | |
---|---|---|
committer | 2009-09-24 07:47:39 -0400 | |
commit | 4fadd7bb20a1e7c774ed88dc703d8fbcd00ff917 (patch) | |
tree | a6f3df6f19d27e81f35a93f8858b73bd4273f420 /mm/truncate.c | |
parent | exofs: remove BKL from super operations (diff) | |
download | wireguard-linux-4fadd7bb20a1e7c774ed88dc703d8fbcd00ff917.tar.xz wireguard-linux-4fadd7bb20a1e7c774ed88dc703d8fbcd00ff917.zip |
freeze_bdev: kill bd_mount_sem
Now that we have the freeze count there is not much reason for bd_mount_sem
anymore. The actual freeze/thaw operations are serialized using the
bd_fsfreeze_mutex, and the only other place we take bd_mount_sem is
get_sb_bdev which tries to prevent mounting a filesystem while the block
device is frozen. Instead of add a check for bd_fsfreeze_count and
return -EBUSY if a filesystem is frozen. While that is a change in user
visible behaviour a failing mount is much better for this case rather
than having the mount process stuck uninterruptible for a long time.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'mm/truncate.c')
0 files changed, 0 insertions, 0 deletions