libceph: replace ceph_monc_request_next_osdmap()
... with a wrapper around maybe_request_map() - no need for two osdmap-specific functions. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
This commit is contained in:
@@ -384,20 +384,6 @@ void ceph_monc_renew_subs(struct ceph_mon_client *monc)
|
||||
}
|
||||
EXPORT_SYMBOL(ceph_monc_renew_subs);
|
||||
|
||||
/*
|
||||
* Register interest in the next osdmap
|
||||
*/
|
||||
void ceph_monc_request_next_osdmap(struct ceph_mon_client *monc)
|
||||
{
|
||||
dout("%s have %u\n", __func__, monc->subs[CEPH_SUB_OSDMAP].have);
|
||||
mutex_lock(&monc->mutex);
|
||||
if (__ceph_monc_want_map(monc, CEPH_SUB_OSDMAP,
|
||||
monc->subs[CEPH_SUB_OSDMAP].have + 1, false))
|
||||
__send_subscribe(monc);
|
||||
mutex_unlock(&monc->mutex);
|
||||
}
|
||||
EXPORT_SYMBOL(ceph_monc_request_next_osdmap);
|
||||
|
||||
/*
|
||||
* Wait for an osdmap with a given epoch.
|
||||
*
|
||||
|
Reference in New Issue
Block a user