diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 01:34:18 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-11-13 01:34:18 -0500 |
commit | 9bc9ccd7db1c9f043f75380b5a5b94912046a60e (patch) | |
tree | dd0a1b3396ae9414f668b0110cc39d11268ad3ed /fs/fuse/inode.c | |
parent | f0230294271f511b41797305b685365a9e569a09 (diff) | |
parent | bdd3536618443809d18868563eeafa63b9d29603 (diff) |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull vfs updates from Al Viro:
"All kinds of stuff this time around; some more notable parts:
- RCU'd vfsmounts handling
- new primitives for coredump handling
- files_lock is gone
- Bruce's delegations handling series
- exportfs fixes
plus misc stuff all over the place"
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (101 commits)
ecryptfs: ->f_op is never NULL
locks: break delegations on any attribute modification
locks: break delegations on link
locks: break delegations on rename
locks: helper functions for delegation breaking
locks: break delegations on unlink
namei: minor vfs_unlink cleanup
locks: implement delegations
locks: introduce new FL_DELEG lock flag
vfs: take i_mutex on renamed file
vfs: rename I_MUTEX_QUOTA now that it's not used for quotas
vfs: don't use PARENT/CHILD lock classes for non-directories
vfs: pull ext4's double-i_mutex-locking into common code
exportfs: fix quadratic behavior in filehandle lookup
exportfs: better variable name
exportfs: move most of reconnect_path to helper function
exportfs: eliminate unused "noprogress" counter
exportfs: stop retrying once we race with rename/remove
exportfs: clear DISCONNECTED on all parents sooner
exportfs: more detailed comment for path_reconnect
...
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r-- | fs/fuse/inode.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index a8ce6dab60a0..d468643a68b2 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
@@ -565,7 +565,6 @@ void fuse_conn_init(struct fuse_conn *fc) | |||
565 | { | 565 | { |
566 | memset(fc, 0, sizeof(*fc)); | 566 | memset(fc, 0, sizeof(*fc)); |
567 | spin_lock_init(&fc->lock); | 567 | spin_lock_init(&fc->lock); |
568 | mutex_init(&fc->inst_mutex); | ||
569 | init_rwsem(&fc->killsb); | 568 | init_rwsem(&fc->killsb); |
570 | atomic_set(&fc->count, 1); | 569 | atomic_set(&fc->count, 1); |
571 | init_waitqueue_head(&fc->waitq); | 570 | init_waitqueue_head(&fc->waitq); |
@@ -596,7 +595,6 @@ void fuse_conn_put(struct fuse_conn *fc) | |||
596 | if (atomic_dec_and_test(&fc->count)) { | 595 | if (atomic_dec_and_test(&fc->count)) { |
597 | if (fc->destroy_req) | 596 | if (fc->destroy_req) |
598 | fuse_request_free(fc->destroy_req); | 597 | fuse_request_free(fc->destroy_req); |
599 | mutex_destroy(&fc->inst_mutex); | ||
600 | fc->release(fc); | 598 | fc->release(fc); |
601 | } | 599 | } |
602 | } | 600 | } |
@@ -920,7 +918,7 @@ static void fuse_send_init(struct fuse_conn *fc, struct fuse_req *req) | |||
920 | 918 | ||
921 | static void fuse_free_conn(struct fuse_conn *fc) | 919 | static void fuse_free_conn(struct fuse_conn *fc) |
922 | { | 920 | { |
923 | kfree(fc); | 921 | kfree_rcu(fc, rcu); |
924 | } | 922 | } |
925 | 923 | ||
926 | static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb) | 924 | static int fuse_bdi_init(struct fuse_conn *fc, struct super_block *sb) |