From 4083d0333ad9b2dafd730548084e33bbad2ec46b Mon Sep 17 00:00:00 2001 From: adilger Date: Sat, 16 Nov 2002 08:27:40 +0000 Subject: [PATCH] Don't dereference last_xid and last_committed in a request we just freed. --- lustre/ptlrpc/client.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lustre/ptlrpc/client.c b/lustre/ptlrpc/client.c index 1425498..43d40f9 100644 --- a/lustre/ptlrpc/client.c +++ b/lustre/ptlrpc/client.c @@ -666,10 +666,8 @@ int ptlrpc_queue_wait(struct ptlrpc_request *req) spin_unlock(&conn->c_lock); ptlrpc_req_finished(req); /* Must be called unlocked. */ spin_lock(&conn->c_lock); - } - - /* Replay-enabled imports return commit-status information. */ - if (req->rq_import->imp_flags & IMP_REPLAYABLE) { + } else /* if (req->rq_import->imp_flags & IMP_REPLAYABLE) */ { + /* Replay-enabled imports return commit-status information. */ /* XXX this needs to be per-import, or multiple MDS services on * XXX the same system are going to interfere messily with each * XXX others' transno spaces. -- 1.8.3.1