1 Apr 2011 02:59
ceph: flush msgr_wq during mds_client shutdown
Linux Kernel Mailing List <linux-kernel <at> vger.kernel.org>
2011-04-01 00:59:01 GMT
2011-04-01 00:59:01 GMT
Gitweb: http://git.kernel.org/linus/ef550f6f4f6c9345a27ec85d98f4f7de1adce79c Commit: ef550f6f4f6c9345a27ec85d98f4f7de1adce79c Parent: 59c2be1e4d42c0d4949cecdeef3f37070a1fbc13 Author: Sage Weil <sage <at> newdream.net> AuthorDate: Fri Mar 25 13:27:48 2011 -0700 Committer: Sage Weil <sage <at> newdream.net> CommitDate: Fri Mar 25 13:27:48 2011 -0700 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 <sage <at> newdream.net> --- fs/ceph/mds_client.c | 6 ++++++ net/ceph/ceph_common.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index a1ee8fa..f60b07b 100644 --- a/fs/ceph/mds_client.c(Continue reading)
RSS Feed