From a3204b487b42e2d2a512158cad0773728c221333 Mon Sep 17 00:00:00 2001 From: shaver Date: Sat, 6 Sep 2003 04:05:25 +0000 Subject: [PATCH] - Support multiple lov OBDs per node, by tying the LOV into the same UUID group as the OSCs and MDCs. - The MDS now _always_ creates its own LOV and OSCs/MDC, and there is no longer a --mds_ost_conn switch. - replay-dual should work now, but I haven't tested it. - the mdc_lock is now per-MDC, and not global - when a namespace is destroyed, remove the associated lprocfs directory, so that it's not there like a landmine with dangling namespace pointers. - the MDS now knows its LOV by device name (which is lov_$MDSNAME) - LOV now has an explicit 'descriptor' or 'LOV service' UUID, instead of reusing the the device UUID - print the (possibly useful) mdc name instead of the largely useless and not really unique U"U"ID in lprocfs/lov/target_mdc --- lustre/mdc/mdc_locks.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/mdc/mdc_locks.c b/lustre/mdc/mdc_locks.c index 2c2bf84..37a026b 100644 --- a/lustre/mdc/mdc_locks.c +++ b/lustre/mdc/mdc_locks.c @@ -288,11 +288,11 @@ int mdc_enqueue(struct obd_export *exp, RETURN(-EINVAL); } - mdc_get_rpc_lock(&mdc_rpc_lock, it); + mdc_get_rpc_lock(obddev->u.cli.cl_rpc_lock, it); rc = ldlm_cli_enqueue(exp, req, obddev->obd_namespace, NULL, res_id, lock_type, NULL, 0, lock_mode, &flags, cb_completion, cb_blocking, cb_data, lockh); - mdc_put_rpc_lock(&mdc_rpc_lock, it); + mdc_put_rpc_lock(obddev->u.cli.cl_rpc_lock, it); /* Similarly, if we're going to replay this request, we don't want to * actually get a lock, just perform the intent. */ -- 1.8.3.1