Commit 8d3d9848 authored by John L. Hammond's avatar John L. Hammond Committed by Greg Kroah-Hartman

staging/lustre/mgc: inline mgc_cancel()

The function mgc_cancel() is never invoked as an OBD device method and
is only called directly from mgc_process_log() so remove it.
Signed-off-by: default avatarJohn L. Hammond <john.hammond@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 903af118
...@@ -904,14 +904,6 @@ static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm, ...@@ -904,14 +904,6 @@ static int mgc_enqueue(struct obd_export *exp, struct lov_stripe_md *lsm,
return rc; return rc;
} }
static int mgc_cancel(struct obd_export *exp, struct lov_stripe_md *md,
__u32 mode, struct lustre_handle *lockh)
{
ldlm_lock_decref(lockh, mode);
return 0;
}
static void mgc_notify_active(struct obd_device *unused) static void mgc_notify_active(struct obd_device *unused)
{ {
/* wakeup mgc_requeue_thread to requeue mgc lock */ /* wakeup mgc_requeue_thread to requeue mgc lock */
...@@ -1679,12 +1671,8 @@ int mgc_process_log(struct obd_device *mgc, struct config_llog_data *cld) ...@@ -1679,12 +1671,8 @@ int mgc_process_log(struct obd_device *mgc, struct config_llog_data *cld)
mutex_unlock(&cld->cld_lock); mutex_unlock(&cld->cld_lock);
/* Now drop the lock so MGS can revoke it */ /* Now drop the lock so MGS can revoke it */
if (!rcl) { if (!rcl)
rcl = mgc_cancel(mgc->u.cli.cl_mgc_mgsexp, NULL, ldlm_lock_decref(&lockh, LCK_CR);
LCK_CR, &lockh);
if (rcl)
CERROR("Can't drop cfg lock: %d\n", rcl);
}
return rc; return rc;
} }
...@@ -1814,7 +1802,6 @@ struct obd_ops mgc_obd_ops = { ...@@ -1814,7 +1802,6 @@ struct obd_ops mgc_obd_ops = {
.o_connect = client_connect_import, .o_connect = client_connect_import,
.o_disconnect = client_disconnect_export, .o_disconnect = client_disconnect_export,
/* .o_enqueue = mgc_enqueue, */ /* .o_enqueue = mgc_enqueue, */
.o_cancel = mgc_cancel,
/* .o_iocontrol = mgc_iocontrol, */ /* .o_iocontrol = mgc_iocontrol, */
.o_set_info_async = mgc_set_info_async, .o_set_info_async = mgc_set_info_async,
.o_get_info = mgc_get_info, .o_get_info = mgc_get_info,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment