From 935498e08a760f859d1a61accd49c58db6ea70d6 Mon Sep 17 00:00:00 2001 From: adilger Date: Fri, 12 Sep 2003 10:36:50 +0000 Subject: [PATCH] Don't crash when an outstanding reply is pending on an export. b=1765 --- lustre/mds/handler.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/lustre/mds/handler.c b/lustre/mds/handler.c index 8130ffe..364cf84 100644 --- a/lustre/mds/handler.c +++ b/lustre/mds/handler.c @@ -452,23 +452,6 @@ static int mds_disconnect(struct lustre_handle *conn, int flags) pop_ctxt(&saved, &obd->u.mds.mds_ctxt, NULL); ldlm_cancel_locks_for_export(export); - if (export->exp_outstanding_reply) { - struct ptlrpc_request *req = export->exp_outstanding_reply; - unsigned long flags; - - /* Fake the ack, so the locks get cancelled. */ - LBUG (); - /* Actually we can't do this because it prevents us knowing - * if the ACK callback ran or not */ - spin_lock_irqsave (&req->rq_lock, flags); - req->rq_want_ack = 0; - req->rq_err = 1; - wake_up(&req->rq_wait_for_rep); - spin_unlock_irqrestore (&req->rq_lock, flags); - - export->exp_outstanding_reply = NULL; - } - if (!(flags & OBD_OPT_FAILOVER)) mds_client_free(export); -- 1.8.3.1