*/
/*
* This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
*/
/**
restart:
ldlm_reprocess_queue(res, &res->lr_waiting,
&rpc_list,
- LDLM_PROCESS_RESCAN, NULL);
+ LDLM_PROCESS_RESCAN, 0);
unlock_res_and_lock(req);
rc = ldlm_run_ast_work(ns, &rpc_list,
{
struct file_lock *getlk = lock->l_ast_data;
struct obd_device *obd;
- struct obd_import *imp = NULL;
enum ldlm_error err;
int rc = 0;
ENTRY;
"client-side enqueue returned a blocked lock, sleeping");
obd = class_exp2obd(lock->l_conn_export);
- /* if this is a local lock, there is no import */
- if (obd)
- imp = obd->u.cli.cl_import;
-
/* Go to sleep until the lock is granted. */
rc = l_wait_event_abortable(lock->l_waitq,
is_granted_or_cancelled(lock));