From: Toby Smith Date: Wed, 7 May 2014 06:21:22 +0000 (+1000) Subject: staging: lustre: fix sparse warning "unexpected unlock" X-Git-Tag: v4.14-rc1~7083^2~39^2~525 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e69ae73b62ab9b2831c70af3e4022b385745138e;p=platform%2Fkernel%2Flinux-rpi.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 7ce07f6..1269844 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;