Re: [PATCH] staging: lustre: Fix 'unexpected unlock' warning generated by sparse

2016-02-07 Thread Niranjan Dighe
On Thu, Feb 4, 2016 at 3:53 AM, Greg Kroah-Hartman wrote: > On Sun, Jan 03, 2016 at 08:27:04AM +0530, Niranjan Dighe wrote: >> Added annotation '__must_hold' to function ksocknal_send_keepalive_locked >> which unlocks the lock ksocknal_data.ksnd_global_lock. As this lock is >> not acquired in the

Re: [PATCH] staging: lustre: Fix 'unexpected unlock' warning generated by sparse

2016-02-03 Thread Greg Kroah-Hartman
On Sun, Jan 03, 2016 at 08:27:04AM +0530, Niranjan Dighe wrote: > Added annotation '__must_hold' to function ksocknal_send_keepalive_locked > which unlocks the lock ksocknal_data.ksnd_global_lock. As this lock is > not acquired in the current function, sparse warns about context imbalance > > Sign

[PATCH] staging: lustre: Fix 'unexpected unlock' warning generated by sparse

2016-01-02 Thread Niranjan Dighe
Added annotation '__must_hold' to function ksocknal_send_keepalive_locked which unlocks the lock ksocknal_data.ksnd_global_lock. As this lock is not acquired in the current function, sparse warns about context imbalance Signed-off-by: Niranjan Dighe --- drivers/staging/lustre/lnet/klnds/socklnd/