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

Greg Kroah-Hartman gregkh at linuxfoundation.org
Wed Feb 3 14:23:23 PST 2016


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
> 
> Signed-off-by: Niranjan Dighe <niranjan.dighe at gmail.com>
> ---
>  drivers/staging/lustre/lnet/klnds/socklnd/socklnd_cb.c | 1 +
>  1 file changed, 1 insertion(+)

Doesn't apply to my tree :(


More information about the lustre-devel mailing list