diff options
author | Sage Weil <sage@newdream.net> | 2010-05-29 09:41:23 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2010-05-29 09:42:03 -0700 |
commit | a922d38fd10d55d5033f10df15baf966e8f5b18c (patch) | |
tree | 306f73dedd5482f09bdac6dc9ecb5285f95b316f /fs/ceph/messenger.c | |
parent | dd1c9057366f329911180e9000e2b425f23fc287 (diff) | |
download | linux-a922d38fd10d55d5033f10df15baf966e8f5b18c.tar.gz linux-a922d38fd10d55d5033f10df15baf966e8f5b18c.tar.bz2 linux-a922d38fd10d55d5033f10df15baf966e8f5b18c.zip |
ceph: close out mds, osd connections before stopping auth
The auth module (part of the mon_client) is needed to free any
ceph_authorizer(s) used by the mds and osd connections. Flush the msgr
workqueue before stopping monc to ensure that the destroy_authorizer
auth op is available when those connections are closed out.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/messenger.c')
-rw-r--r-- | fs/ceph/messenger.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fs/ceph/messenger.c b/fs/ceph/messenger.c index 60b74839ebec..64b8b1f7863d 100644 --- a/fs/ceph/messenger.c +++ b/fs/ceph/messenger.c @@ -120,6 +120,12 @@ void ceph_msgr_exit(void) destroy_workqueue(ceph_msgr_wq); } +void ceph_msgr_flush() +{ + flush_workqueue(ceph_msgr_wq); +} + + /* * socket callback functions */ |