Whamcloud - gitweb
LU-14047 lustre: change EWOULDBLOCK to EAGAIN
[fs/lustre-release.git] / lustre / osc / osc_lock.c
index 62da056..9e46679 100644 (file)
@@ -309,7 +309,7 @@ static int osc_lock_upcall(void *cookie, struct lustre_handle *lockh,
                /* Hide the error. */
                rc = 0;
        } else if (rc < 0 && oscl->ols_flags & LDLM_FL_NDELAY) {
-               rc = -EWOULDBLOCK;
+               rc = -EAGAIN;
        }
 
        if (oscl->ols_owner != NULL)