From: Sage Weil Date: Fri, 25 Mar 2011 20:27:48 +0000 (-0700) Subject: ceph: flush msgr_wq during mds_client shutdown X-Git-Tag: v2.6.39-rc2~36^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ef550f6f4f6c9345a27ec85d98f4f7de1adce79c;p=pandora-kernel.git ceph: flush msgr_wq during mds_client shutdown The release method for mds connections uses a backpointer to the mds_client, so we need to flush the workqueue of any pending work (and ceph_connection references) prior to freeing the mds_client. This fixes an oops easily triggered under UML by while true ; do mount ... ; umount ... ; done Also fix an outdated comment: the flush in ceph_destroy_client only flushes OSD connections out. This bug is basically an artifact of the ceph -> ceph+libceph conversion. Signed-off-by: Sage Weil --- Reading git-diff-tree failed