diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 13:33:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-07-25 13:33:36 -0400 |
commit | 096a705bbc080a4041636d07514560da8d78acbe (patch) | |
tree | 38c3c01225709ffa53419083ea6332f8a72610de /fs/super.c | |
parent | fea80311a939a746533a6d7e7c3183729d6a3faf (diff) | |
parent | 5757a6d76cdf6dda2a492c09b985c015e86779b1 (diff) |
Merge branch 'for-3.1/core' of git://git.kernel.dk/linux-block
* 'for-3.1/core' of git://git.kernel.dk/linux-block: (24 commits)
block: strict rq_affinity
backing-dev: use synchronize_rcu_expedited instead of synchronize_rcu
block: fix patch import error in max_discard_sectors check
block: reorder request_queue to remove 64 bit alignment padding
CFQ: add think time check for group
CFQ: add think time check for service tree
CFQ: move think time check variables to a separate struct
fixlet: Remove fs_excl from struct task.
cfq: Remove special treatment for metadata rqs.
block: document blk_plug list access
block: avoid building too big plug list
compat_ioctl: fix make headers_check regression
block: eliminate potential for infinite loop in blkdev_issue_discard
compat_ioctl: fix warning caused by qemu
block: flush MEDIA_CHANGE from drivers on close(2)
blk-throttle: Make total_nr_queued unsigned
block: Add __attribute__((format(printf...) and fix fallout
fs/partitions/check.c: make local symbols static
block:remove some spare spaces in genhd.c
block:fix the comment error in blkdev.h
...
Diffstat (limited to 'fs/super.c')
-rw-r--r-- | fs/super.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/fs/super.c b/fs/super.c index 7943f04cb3a9..3f56a269a4f4 100644 --- a/fs/super.c +++ b/fs/super.c | |||
@@ -351,13 +351,11 @@ bool grab_super_passive(struct super_block *sb) | |||
351 | */ | 351 | */ |
352 | void lock_super(struct super_block * sb) | 352 | void lock_super(struct super_block * sb) |
353 | { | 353 | { |
354 | get_fs_excl(); | ||
355 | mutex_lock(&sb->s_lock); | 354 | mutex_lock(&sb->s_lock); |
356 | } | 355 | } |
357 | 356 | ||
358 | void unlock_super(struct super_block * sb) | 357 | void unlock_super(struct super_block * sb) |
359 | { | 358 | { |
360 | put_fs_excl(); | ||
361 | mutex_unlock(&sb->s_lock); | 359 | mutex_unlock(&sb->s_lock); |
362 | } | 360 | } |
363 | 361 | ||
@@ -385,7 +383,6 @@ void generic_shutdown_super(struct super_block *sb) | |||
385 | if (sb->s_root) { | 383 | if (sb->s_root) { |
386 | shrink_dcache_for_umount(sb); | 384 | shrink_dcache_for_umount(sb); |
387 | sync_filesystem(sb); | 385 | sync_filesystem(sb); |
388 | get_fs_excl(); | ||
389 | sb->s_flags &= ~MS_ACTIVE; | 386 | sb->s_flags &= ~MS_ACTIVE; |
390 | 387 | ||
391 | fsnotify_unmount_inodes(&sb->s_inodes); | 388 | fsnotify_unmount_inodes(&sb->s_inodes); |
@@ -400,7 +397,6 @@ void generic_shutdown_super(struct super_block *sb) | |||
400 | "Self-destruct in 5 seconds. Have a nice day...\n", | 397 | "Self-destruct in 5 seconds. Have a nice day...\n", |
401 | sb->s_id); | 398 | sb->s_id); |
402 | } | 399 | } |
403 | put_fs_excl(); | ||
404 | } | 400 | } |
405 | spin_lock(&sb_lock); | 401 | spin_lock(&sb_lock); |
406 | /* should be initialized for __put_super_and_need_restart() */ | 402 | /* should be initialized for __put_super_and_need_restart() */ |