aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/ceph/mds_client.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c
index b71ffd2c8094..462281742aef 100644
--- a/fs/ceph/mds_client.c
+++ b/fs/ceph/mds_client.c
@@ -3406,16 +3406,14 @@ static int get_authorizer(struct ceph_connection *con,
3406 int ret = 0; 3406 int ret = 0;
3407 3407
3408 if (force_new && auth->authorizer) { 3408 if (force_new && auth->authorizer) {
3409 ac->ops->destroy_authorizer(ac, auth->authorizer); 3409 if (ac->ops && ac->ops->destroy_authorizer)
3410 ac->ops->destroy_authorizer(ac, auth->authorizer);
3410 auth->authorizer = NULL; 3411 auth->authorizer = NULL;
3411 } 3412 }
3412 if (auth->authorizer == NULL) { 3413 if (!auth->authorizer && ac->ops && ac->ops->create_authorizer) {
3413 if (ac->ops->create_authorizer) { 3414 ret = ac->ops->create_authorizer(ac, CEPH_ENTITY_TYPE_MDS, auth);
3414 ret = ac->ops->create_authorizer(ac, 3415 if (ret)
3415 CEPH_ENTITY_TYPE_MDS, auth); 3416 return ret;
3416 if (ret)
3417 return ret;
3418 }
3419 } 3417 }
3420 3418
3421 *proto = ac->protocol; 3419 *proto = ac->protocol;