* [Cluster-devel] dlm: Fix comment in dlm.h regarding lock_dlm() return values
@ 2010-11-23 13:21 Steven Whitehouse
0 siblings, 0 replies; only message in thread
From: Steven Whitehouse @ 2010-11-23 13:21 UTC (permalink / raw)
To: cluster-devel.redhat.com
The code in dlm_lock() explicitly tests for a return value of
-EAGAIN and changes it to zero in that case, so this function
can never return -EAGAIN. I'm not 100% sure that it can
return -ENOTCONN either, but the code paths are more tricky
to trace in that case, so I've left that one for now.
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
diff --git a/include/linux/dlm.h b/include/linux/dlm.h
index d4e02f5..3b4236c 100644
--- a/include/linux/dlm.h
+++ b/include/linux/dlm.h
@@ -112,7 +112,6 @@ int dlm_release_lockspace(dlm_lockspace_t *lockspace, int force);
* Returns:
* 0 if request is successfully queued for processing
* -EINVAL if any input parameters are invalid
- * -EAGAIN if request would block and is flagged DLM_LKF_NOQUEUE
* -ENOMEM if there is no memory to process request
* -ENOTCONN if there is a communication error
*
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-11-23 13:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-23 13:21 [Cluster-devel] dlm: Fix comment in dlm.h regarding lock_dlm() return values Steven Whitehouse
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).