]> git.baikalelectronics.ru Git - kernel.git/commit
libceph: flush msgr queue during mon_client shutdown
authorSage Weil <sage@inktank.com>
Mon, 11 Jun 2012 03:43:56 +0000 (20:43 -0700)
committerSage Weil <sage@inktank.com>
Fri, 15 Jun 2012 18:26:40 +0000 (11:26 -0700)
commitb8a5d18be65671fd01293d5e600a1299a7198f03
treedd8d3334a38320ba7918ca9ccc6e8fe2f943c867
parenta646ae7ab8dc68e45f7fce3b7e97f53751de6ed5
libceph: flush msgr queue during mon_client shutdown

We need to flush the msgr workqueue during mon_client shutdown to
ensure that any work affecting our embedded ceph_connection is
finished so that we can be safely destroyed.

Previously, we were flushing the work queue after osd_client
shutdown and before mon_client shutdown to ensure that any osd
connection refs to authorizers are flushed.  Remove the redundant
flush, and document in the comment that the mon_client flush is
needed to cover that case as well.

Signed-off-by: Sage Weil <sage@inktank.com>
Reviewed-by: Alex Elder <elder@inktank.com>
net/ceph/ceph_common.c
net/ceph/mon_client.c