diff options
author | Nick Piggin <npiggin@suse.de> | 2010-01-29 15:38:32 -0800 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2010-04-27 17:32:50 +0200 |
commit | 7e835af8566b68c0396256cdcb371f62e9cdb5fa (patch) | |
tree | d1d44193381034ed938125cca99817fe7aeaa3de /fs/notify | |
parent | a119db1dc3f3a6da86148960937383ce0c162ad4 (diff) | |
download | lwn-7e835af8566b68c0396256cdcb371f62e9cdb5fa.tar.gz lwn-7e835af8566b68c0396256cdcb371f62e9cdb5fa.zip |
fs-inode_lock-scale-11
This enables locking to be reduced and simplified.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/inode_mark.c | 10 | ||||
-rw-r--r-- | fs/notify/inotify/inotify.c | 10 |
2 files changed, 0 insertions, 20 deletions
diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index 81b5bbb3a7ee..c705b7934034 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c @@ -413,14 +413,6 @@ void fsnotify_unmount_inodes(struct list_head *list) spin_unlock(&next_i->i_lock); } - /* - * We can safely drop inode_lock here because we hold - * references on both inode and next_i. Also no new inodes - * will be added since the umount has begun. Finally, - * iprune_mutex keeps shrink_icache_memory() away. - */ - spin_unlock(&sb_inode_list_lock); - if (need_iput_tmp) iput(need_iput_tmp); @@ -430,7 +422,5 @@ void fsnotify_unmount_inodes(struct list_head *list) fsnotify_inode_delete(inode); iput(inode); - - spin_lock(&sb_inode_list_lock); } } diff --git a/fs/notify/inotify/inotify.c b/fs/notify/inotify/inotify.c index 7846758db7da..1c0bc7b681f7 100644 --- a/fs/notify/inotify/inotify.c +++ b/fs/notify/inotify/inotify.c @@ -438,14 +438,6 @@ void inotify_unmount_inodes(struct list_head *list) spin_unlock(&next_i->i_lock); } - /* - * We can safely drop inode_lock here because we hold - * references on both inode and next_i. Also no new inodes - * will be added since the umount has begun. Finally, - * iprune_mutex keeps shrink_icache_memory() away. - */ - spin_unlock(&sb_inode_list_lock); - if (need_iput_tmp) iput(need_iput_tmp); @@ -463,8 +455,6 @@ void inotify_unmount_inodes(struct list_head *list) } mutex_unlock(&inode->inotify_mutex); iput(inode); - - spin_lock(&sb_inode_list_lock); } } EXPORT_SYMBOL_GPL(inotify_unmount_inodes); |