From df41bc7d82be4c8bf008b3397d4e7ba78669e007 Mon Sep 17 00:00:00 2001 From: braam Date: Wed, 21 Aug 2002 22:36:29 +0000 Subject: [PATCH] Change lov.xml file a little so that it works with localhost. Remove the namespace locks from ll_file_release. Basic parallel I/O now works, it seems. --- lustre/llite/file.c | 5 +++-- lustre/tests/lov.sh | 2 +- lustre/tests/lov.xml | 7 ++++--- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lustre/llite/file.c b/lustre/llite/file.c index 37dccc6..b1a6287 100644 --- a/lustre/llite/file.c +++ b/lustre/llite/file.c @@ -185,7 +185,8 @@ static int ll_file_release(struct inode *inode, struct file *file) } ptlrpc_free_req(fd->fd_req); - l_lock(&obddev->obd_namespace->ns_lock); + // XXX Phil lov devices have no namespace + //l_lock(&obddev->obd_namespace->ns_lock); list_for_each_safe(tmp, next, &lli->lli_osc_locks) { struct ldlm_lock *lock; struct lustre_handle lockh; @@ -200,7 +201,7 @@ static int ll_file_release(struct inode *inode, struct file *file) if (rc < 0) CERROR("ldlm_cli_cancel: %d\n", rc); } - l_unlock(&obddev->obd_namespace->ns_lock); + //l_unlock(&obddev->obd_namespace->ns_lock); EXIT; diff --git a/lustre/tests/lov.sh b/lustre/tests/lov.sh index cf53436..ea6b380 100755 --- a/lustre/tests/lov.sh +++ b/lustre/tests/lov.sh @@ -6,7 +6,7 @@ LMC=../utils/lmc echo "FIXME: autoformat is no by default, edit $config to change" # create nodes -${LMC} -o $config --node localhost --net uml1 tcp +${LMC} -o $config --node localhost --net localhost tcp # configure mds server ${LMC} -m $config --format --node localhost --mds mds1 /tmp/mds1 50000 diff --git a/lustre/tests/lov.xml b/lustre/tests/lov.xml index 25916ce..60c183f 100644 --- a/lustre/tests/lov.xml +++ b/lustre/tests/lov.xml @@ -1,4 +1,5 @@ + @@ -15,8 +16,8 @@ - uml1 - 888 + localhost + 988 @@ -31,7 +32,7 @@ - + -- 1.8.3.1