]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
kclient: fix inode refcount problems in ceph_fill_trace
authorSage Weil <sage@newdream.net>
Wed, 15 Oct 2008 20:52:33 +0000 (13:52 -0700)
committerSage Weil <sage@newdream.net>
Wed, 15 Oct 2008 21:01:26 +0000 (14:01 -0700)
commit552786c4f88164766616cdaf96b9d26a9c0325f2
treecec322eedd84558fde31b44c31da5a35778a838b
parent3dbec47dd420a9fa710523e099c69dec7e58d79a
kclient: fix inode refcount problems in ceph_fill_trace

If we fail to take i_mutex, we get the inode via ceph_get_inode, which bumps
i_count.  Make sure we iput() it before jumping to update_inode label.  Note
that d_instantiate consumes the ref, but the other paths (d_alloc_anon,
d_find_alias) do not.
src/kernel/inode.c