All new accounts created on Gitlab now require administrator approval. If you invite any collaborators, please let Flux staff know so they can approve the accounts.

Commit 833a2cce authored by Pankaj Kumar's avatar Pankaj Kumar

Fixed lock issue in try_grant & try_revoke

parent e110474f
......@@ -801,7 +801,7 @@ static int try_grant(struct cspace *cspacedst, struct cnode *cnodesrc,
#ifdef KERNEL
if (!mutex_trylock(&cnodesrc->cdt_root->lock)) {
#else
if (!pthread_mutex_lock(&cnodesrc->cdt_root->lock)) {
if (pthread_mutex_lock(&cnodesrc->cdt_root->lock)) {
/*
* Tell caller to retry
*/
......@@ -993,7 +993,7 @@ static int try_revoke(struct cspace *cspace, struct cnode *cnode)
#ifdef KERNEL
if (!mutex_trylock(&cnode->cdt_root->lock)) {
#else
if (!pthread_mutex_lock(&cnode->cdt_root->lock)) {
if (pthread_mutex_lock(&cnode->cdt_root->lock)) {
#endif
/*
* Tell caller to retry
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment