diff options
Diffstat (limited to 'net/ceph/mon_client.c')
| -rw-r--r-- | net/ceph/mon_client.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index 18deb3d889c4..a53e4fbb6319 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c | |||
| @@ -922,6 +922,15 @@ int ceph_monc_blacklist_add(struct ceph_mon_client *monc, | |||
| 922 | mutex_unlock(&monc->mutex); | 922 | mutex_unlock(&monc->mutex); |
| 923 | 923 | ||
| 924 | ret = wait_generic_request(req); | 924 | ret = wait_generic_request(req); |
| 925 | if (!ret) | ||
| 926 | /* | ||
| 927 | * Make sure we have the osdmap that includes the blacklist | ||
| 928 | * entry. This is needed to ensure that the OSDs pick up the | ||
| 929 | * new blacklist before processing any future requests from | ||
| 930 | * this client. | ||
| 931 | */ | ||
| 932 | ret = ceph_wait_for_latest_osdmap(monc->client, 0); | ||
| 933 | |||
| 925 | out: | 934 | out: |
| 926 | put_generic_request(req); | 935 | put_generic_request(req); |
| 927 | return ret; | 936 | return ret; |
