summaryrefslogtreecommitdiffstats
path: root/drivers/staging/lustre
diff options
context:
space:
mode:
authorToby Smith <toby@tismith.id.au>2014-05-07 16:21:22 +1000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-23 20:58:12 +0900
commite69ae73b62ab9b2831c70af3e4022b385745138e (patch)
tree4341d4193153c975a86234d977abb930f259720f /drivers/staging/lustre
parent773e4c41d92c2034ea2db41d4b7036be4c0c616d (diff)
downloadlinux-e69ae73b62ab9b2831c70af3e4022b385745138e.tar.gz
linux-e69ae73b62ab9b2831c70af3e4022b385745138e.tar.bz2
linux-e69ae73b62ab9b2831c70af3e4022b385745138e.zip
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 <toby@tismith.id.au> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/lustre')
-rw-r--r--drivers/staging/lustre/lnet/lnet/lib-eq.c1
1 files changed, 1 insertions, 0 deletions
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;