X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fobdclass%2Fgenops.c;h=1fa7197656bcc43aa072b7d1b141e7985d4934fd;hp=0d670daea52c1ee33889d82063cf6ad885937f7b;hb=1a9aafbf6317a9b8b026f69faad11e1801e1b92a;hpb=d9e0c9f346d0f0cccfa37737807d6f9d08255ab7 diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c index 0d670da..1fa7197 100644 --- a/lustre/obdclass/genops.c +++ b/lustre/obdclass/genops.c @@ -899,7 +899,7 @@ out: RETURN(rc); } -static struct portals_handle_ops export_handle_ops; +static const char export_handle_owner[] = "export"; /* map connection to client */ struct obd_export *class_conn2export(struct lustre_handle *conn) @@ -918,7 +918,7 @@ struct obd_export *class_conn2export(struct lustre_handle *conn) } CDEBUG(D_INFO, "looking for export cookie %#llx\n", conn->cookie); - export = class_handle2object(conn->cookie, &export_handle_ops); + export = class_handle2object(conn->cookie, export_handle_owner); RETURN(export); } EXPORT_SYMBOL(class_conn2export); @@ -971,10 +971,6 @@ static void class_export_destroy(struct obd_export *exp) EXIT; } -static struct portals_handle_ops export_handle_ops = { - .hop_type = "export", -}; - struct obd_export *class_export_get(struct obd_export *exp) { refcount_inc(&exp->exp_handle.h_ref); @@ -1063,7 +1059,7 @@ struct obd_export *__class_new_export(struct obd_device *obd, INIT_LIST_HEAD_RCU(&export->exp_handle.h_link); INIT_LIST_HEAD(&export->exp_hp_rpcs); INIT_LIST_HEAD(&export->exp_reg_rpcs); - class_handle_hash(&export->exp_handle, &export_handle_ops); + class_handle_hash(&export->exp_handle, export_handle_owner); export->exp_last_request_time = ktime_get_real_seconds(); spin_lock_init(&export->exp_lock); spin_lock_init(&export->exp_rpc_lock);