]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: Fix ref counting double free with hardlink
authorSam Lang <sam.lang@inktank.com>
Mon, 29 Oct 2012 15:30:01 +0000 (10:30 -0500)
committerSage Weil <sage@inktank.com>
Mon, 29 Oct 2012 15:58:36 +0000 (08:58 -0700)
commit1638f6266863d6d4eee32c725dc10c94f5871b1e
treea47fb6adb64c4be2abbc028f5f446574d5b3212c
parent49ca7d50f92a00a96af31574f707cf8f8fe0419f
client: Fix ref counting double free with hardlink

Peforming a hard link through the libcephfs interface causes
a double free on shutdown, due to the Client::link call decrementing
the parent (of the target) directory's inode.  This fix removes the
put_inode(dir) call, to match the behavior of Client::ll_link.

Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
src/client/Client.cc