lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1290518501.2423.8.camel@dolmen>
Date:	Tue, 23 Nov 2010 13:21:41 +0000
From:	Steven Whitehouse <swhiteho@...hat.com>
To:	David Teigland <teigland@...hat.com>
Cc:	cluster-devel@...hat.com, linux-kernel@...r.kernel.org
Subject: dlm: Fix comment in dlm.h regarding lock_dlm() return values


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@...hat.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
  *


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ