]> git.openfabrics.org - ~emulex/infiniband.git/commit
cuse: fix fuse_conn_kill()
authorMiklos Szeredi <mszeredi@suse.cz>
Thu, 30 Aug 2012 17:24:34 +0000 (19:24 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 30 Aug 2012 17:24:34 +0000 (19:24 +0200)
commitbbd99797973f2cebd905bf6469ce08b531ab258f
tree7df386d3b784415f11f242f162499bb23ee5f5de
parentfea7a08acb13524b47711625eebea40a0ede69a0
cuse: fix fuse_conn_kill()

fuse_conn_kill() removed fc->entry, called fuse_ctl_remove_conn() and
fuse_bdi_destroy().  None of which is appropriate for cuse cleanup.

The fuse_ctl_remove_conn() decrements the nlink on the control filesystem, which
is totally bogus.  The others are harmless but unnecessary.

So move these out from fuse_conn_kill() to fuse_put_super() where they belong.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/fuse/inode.c