]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: Fix inode remove from snaprealm race
authorSam Lang <sam.lang@inktank.com>
Fri, 12 Apr 2013 16:08:35 +0000 (11:08 -0500)
committerGreg Farnum <greg@inktank.com>
Tue, 16 Apr 2013 16:04:42 +0000 (09:04 -0700)
commit4a84ddbd30ef3cc105053f272819c2f1ea2be0d2
treeddd893a2ce1d0d95d4d39aa5c709ef668809bd05
parent6133ea5e59cf147fc46f676fa26f415f38910de4
client: Fix inode remove from snaprealm race

This is a follow on fix to b5ce4d0.  Always remove the inode from the
snaprealm's list of inodes_with_caps before the snaprealm ref is
decremented (and the snaprealm potentially gets freed).

Fixes #4694.
Signed-off-by: Sam Lang <sam.lang@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
src/client/Client.cc