]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
client: check for unmounted condition before printing debug output 23603/head
authorJeff Layton <jlayton@kernel.org>
Wed, 1 Aug 2018 13:05:51 +0000 (09:05 -0400)
committerPrashant D <pdhange@redhat.com>
Thu, 16 Aug 2018 07:00:54 +0000 (03:00 -0400)
commitd6802e73c80787e3ec632e08d38b3d6e9682a2f7
tree505da0bd15090229d1d54cb18e63fb3298513cd0
parent8878eb09cd9da6cfa434101a4b4f2b078ea79ef6
client: check for unmounted condition before printing debug output

If the filesystem was unmounted before we attempt to call ceph_ll_close
on a Fh, then we can end up tripping over the dereferences in the
debug output. Check for unmounted filesystem first, and only print
the debug info if it's still mounted.

This patch only fixes up ceph_ll_close, which is the only call ganesha
makes after calling ceph_abort_conn. We may need to fix other paths in
the future though if that ever changes.

Tracker: http://tracker.ceph.com/issues/25213
Signed-off-by: Jeff Layton <jlayton@kernel.org>
(cherry picked from commit 3c94f23d3b10928615a0f1381eb758006db84b13)
src/client/Client.cc