|
@@ -45,6 +45,8 @@
|
|
|
* being an atomic operation.
|
|
|
*/
|
|
|
struct ldlm_resource *lock_res_and_lock(struct ldlm_lock *lock)
|
|
|
+ __acquires(&lock->l_lock)
|
|
|
+ __acquires(&lock->l_resource->lr_lock)
|
|
|
{
|
|
|
spin_lock(&lock->l_lock);
|
|
|
|
|
@@ -59,6 +61,8 @@ EXPORT_SYMBOL(lock_res_and_lock);
|
|
|
* Unlock a lock and its resource previously locked with lock_res_and_lock
|
|
|
*/
|
|
|
void unlock_res_and_lock(struct ldlm_lock *lock)
|
|
|
+ __releases(&lock->l_resource->lr_lock)
|
|
|
+ __releases(&lock->l_lock)
|
|
|
{
|
|
|
/* on server-side resource of lock doesn't change */
|
|
|
ldlm_clear_res_locked(lock);
|