Re: [PATCH v2] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-19 Thread James Simmons
> Added __acquires / __releases sparse locking annotations > to lock_res_and_lock() and unlock_res_and_lock() functions > in l_lock.c, to fix below sparse warnings: > > l_lock.c:47:22: warning: context imbalance in 'lock_res_and_lock' - wrong > count at exit > l_lock.c:61:6: warning: context imb

Re: [PATCH v2] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-18 Thread Dilger, Andreas
> On Sep 18, 2016, at 23:18, Nayeemahmed Badebade > wrote: > > Added __acquires / __releases sparse locking annotations > to lock_res_and_lock() and unlock_res_and_lock() functions > in l_lock.c, to fix below sparse warnings: > > l_lock.c:47:22: warning: context imbalance in 'lock_res_and_lock

[PATCH v2] staging: lustre: lustre/ldlm: Fixed sparse warnings

2016-09-18 Thread Nayeemahmed Badebade
Added __acquires / __releases sparse locking annotations to lock_res_and_lock() and unlock_res_and_lock() functions in l_lock.c, to fix below sparse warnings: l_lock.c:47:22: warning: context imbalance in 'lock_res_and_lock' - wrong count at exit l_lock.c:61:6: warning: context imbalance in 'unlo