From: Toby Smith Date: Wed, 7 May 2014 06:21:22 +0000 (+1000) Subject: staging: lustre: fix sparse warning "unexpected unlock" X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e69ae73b62ab9b2831c70af3e4022b385745138e;p=linux-beck.git staging: lustre: fix sparse warning "unexpected unlock" Fix the following warning in lib-eq.c warning: context imbalance in 'lnet_eq_wait_locked' - unexpected unlock Signed-off-by: Toby Smith Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lnet/lnet/lib-eq.c b/drivers/staging/lustre/lnet/lnet/lib-eq.c index 7ce07f61b2e1..126984464d90 100644 --- a/drivers/staging/lustre/lnet/lnet/lib-eq.c +++ b/drivers/staging/lustre/lnet/lnet/lib-eq.c @@ -325,6 +325,7 @@ EXPORT_SYMBOL(LNetEQWait); static int lnet_eq_wait_locked(int *timeout_ms) +__must_hold(&the_lnet.ln_eq_wait_lock) { int tms = *timeout_ms; int wait;