[PATCH 55/58] staging: lustre: ldlm: flock completion fixes.

2016-07-21 Thread James Simmons
From: Vitaly Fertman Move checks for FAILED, DESTROYED flags under ldlm spinlock, destroy flock atomically with the check it is not destroyed yet. Do not put the granted flock into the resource if this is UNLOCK, TEST, or DEADLOCK'ed flock. Later a regression for

[PATCH 55/58] staging: lustre: ldlm: flock completion fixes.

2016-07-21 Thread James Simmons
From: Vitaly Fertman Move checks for FAILED, DESTROYED flags under ldlm spinlock, destroy flock atomically with the check it is not destroyed yet. Do not put the granted flock into the resource if this is UNLOCK, TEST, or DEADLOCK'ed flock. Later a regression for this patch was reported under