From 38c1d5181fb71d67c9cd13c19dcb708d5bc29ea2 Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 11 Jul 2006 22:14:05 +0000 Subject: [PATCH] Branch b1_5 Finish eeb's irqsave crusade for b1_5 --- lustre/mgs/mgs_handler.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lustre/mgs/mgs_handler.c b/lustre/mgs/mgs_handler.c index 2493fa0..7bfa53d 100644 --- a/lustre/mgs/mgs_handler.c +++ b/lustre/mgs/mgs_handler.c @@ -82,7 +82,6 @@ static int mgs_connect(struct lustre_handle *conn, struct obd_device *obd, static int mgs_disconnect(struct obd_export *exp) { - unsigned long irqflags; int rc; ENTRY; @@ -94,7 +93,7 @@ static int mgs_disconnect(struct obd_export *exp) ldlm_cancel_locks_for_export(exp); /* complete all outstanding replies */ - spin_lock_irqsave(&exp->exp_lock, irqflags); + spin_lock(&exp->exp_lock); while (!list_empty(&exp->exp_outstanding_replies)) { struct ptlrpc_reply_state *rs = list_entry(exp->exp_outstanding_replies.next, @@ -106,7 +105,7 @@ static int mgs_disconnect(struct obd_export *exp) ptlrpc_schedule_difficult_reply(rs); spin_unlock(&svc->srv_lock); } - spin_unlock_irqrestore(&exp->exp_lock, irqflags); + spin_unlock(&exp->exp_lock); class_export_put(exp); RETURN(rc); -- 1.8.3.1