]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: lustre: fix sparse warning "unexpected unlock"
authorToby Smith <toby@tismith.id.au>
Wed, 7 May 2014 06:21:22 +0000 (16:21 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 11:58:12 +0000 (20:58 +0900)
Fix the following warning in lib-eq.c
warning: context imbalance in 'lnet_eq_wait_locked' - unexpected unlock

Signed-off-by: Toby Smith <toby@tismith.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-eq.c

index 7ce07f61b2e18dd6d825d61c7900a4cc04d40616..126984464d90618dca096b116d156ea376d6fe87 100644 (file)
@@ -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;