aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fuse/dev.c
diff options
context:
space:
mode:
authorMiklos Szeredi <miklos@szeredi.hu>2006-01-17 01:14:35 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-17 02:15:30 -0500
commitf543f253f3aa721a24557d7df8259145bb01b734 (patch)
tree173fbfc0c90a2a615e1bd8a2bc49726c1824349c /fs/fuse/dev.c
parent9ba7cbba100bdaca7316d71d6c6298e61191f8b2 (diff)
[PATCH] fuse: make fuse connection a kobject
Kobjectify fuse_conn, and make it visible under /sys/fs/fuse/connections. Lacking any natural naming, connections are numbered. This patch doesn't add any attributes, just the infrastructure. Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/fuse/dev.c')
-rw-r--r--fs/fuse/dev.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c
index 5cd43bf917a4..de4a0a0bda8a 100644
--- a/fs/fuse/dev.c
+++ b/fs/fuse/dev.c
@@ -852,9 +852,11 @@ static int fuse_dev_release(struct inode *inode, struct file *file)
852 fc->connected = 0; 852 fc->connected = 0;
853 end_requests(fc, &fc->pending); 853 end_requests(fc, &fc->pending);
854 end_requests(fc, &fc->processing); 854 end_requests(fc, &fc->processing);
855 fuse_release_conn(fc);
856 } 855 }
857 spin_unlock(&fuse_lock); 856 spin_unlock(&fuse_lock);
857 if (fc)
858 kobject_put(&fc->kobj);
859
858 return 0; 860 return 0;
859} 861}
860 862