forked from Minki/linux
staging/lustre/clio: clear nowait flag agl lock re-enqueue
The LDLM_FL_BLOCK_NOWAIT flag should be cleared when re-enqueue the agl lock as normal glimpse, otherwise, it won't get size back if there is conflicting locks on other client. Signed-off-by: Niu Yawei <yawei.niu@intel.com> Reviewed-on: http://review.whamcloud.com/9249 Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4597 Reviewed-by: Bobi Jam <bobijam@gmail.com> Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com> Reviewed-by: Ned Bass <bass6@llnl.gov> Reviewed-by: Fan Yong <fan.yong@intel.com> Signed-off-by: Oleg Drokin <oleg.drokin@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
88e4ff862d
commit
34554afc05
@ -1192,6 +1192,7 @@ static int osc_lock_wait(const struct lu_env *env,
|
||||
|
||||
LASSERT(olck->ols_agl);
|
||||
olck->ols_agl = 0;
|
||||
olck->ols_flags &= ~LDLM_FL_BLOCK_NOWAIT;
|
||||
rc = osc_lock_enqueue(env, slice, NULL, CEF_ASYNC | CEF_MUST);
|
||||
if (rc != 0)
|
||||
return rc;
|
||||
|
Loading…
Reference in New Issue
Block a user