diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/ceph/osd_client.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/ceph/osd_client.c b/net/ceph/osd_client.c index 1606f740d6ae..2b4b32aaa893 100644 --- a/net/ceph/osd_client.c +++ b/net/ceph/osd_client.c | |||
@@ -2216,6 +2216,17 @@ void ceph_osdc_sync(struct ceph_osd_client *osdc) | |||
2216 | EXPORT_SYMBOL(ceph_osdc_sync); | 2216 | EXPORT_SYMBOL(ceph_osdc_sync); |
2217 | 2217 | ||
2218 | /* | 2218 | /* |
2219 | * Call all pending notify callbacks - for use after a watch is | ||
2220 | * unregistered, to make sure no more callbacks for it will be invoked | ||
2221 | */ | ||
2222 | extern void ceph_osdc_flush_notifies(struct ceph_osd_client *osdc) | ||
2223 | { | ||
2224 | flush_workqueue(osdc->notify_wq); | ||
2225 | } | ||
2226 | EXPORT_SYMBOL(ceph_osdc_flush_notifies); | ||
2227 | |||
2228 | |||
2229 | /* | ||
2219 | * init, shutdown | 2230 | * init, shutdown |
2220 | */ | 2231 | */ |
2221 | int ceph_osdc_init(struct ceph_osd_client *osdc, struct ceph_client *client) | 2232 | int ceph_osdc_init(struct ceph_osd_client *osdc, struct ceph_client *client) |