]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
client: fix crash in trim_caps
authorJohn Spray <john.spray@redhat.com>
Wed, 3 Sep 2014 01:00:33 +0000 (02:00 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 15 Sep 2014 14:05:13 +0000 (15:05 +0100)
commitc328486f246f100ac4fc23c9337f2cbb92d28105
treea9f2e4f1938f555155b3a3aa17974a511fd63c1f
parent3f0ca4668ee34cae07c5554d59847f6570d5a661
client: fix crash in trim_caps

In a75af4c2, procedure was added to invalidate root's dentries
if the trimming failed to free enough caps.  This would sometimes
crash because root->dir wasn't necessarily open.

Fix by only doing it if root dir is open, though I suspect this
may not be the end of it...

Signed-off-by: John Spray <john.spray@redhat.com>
src/client/Client.cc