public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* OFD locks and deadlock detection
@ 2014-05-19 13:18 Michael Kerrisk (man-pages)
  2014-05-19 14:28 ` Jeff Layton
  0 siblings, 1 reply; 6+ messages in thread
From: Michael Kerrisk (man-pages) @ 2014-05-19 13:18 UTC (permalink / raw)
  To: Jeff Layton, linux-man@vger.kernel.org, lkml, Linux-Fsdevel,
	Andy Lutomirski
  Cc: mtk.manpages

Hi Jeff,

I just happened to notice :

    commit 57b65325fe34ec4c917bc4e555144b4a94d9e1f7
    Author: Jeff Layton <jlayton@redhat.com>
    Date:   Mon Feb 3 12:13:09 2014 -0500

        locks: skip deadlock detection on FL_FILE_PVT locks

And then this thread:

    http://thread.gmane.org/gmane.linux.file-systems/81318/focus=81327
    From: Jeff Layton <jlayton <at> redhat.com>
    Subject: [PATCH v5 13/14] locks: skip deadlock detection on FL_FILE_PVT locks
    Date: 2014-01-09 14:19:46 GMT

I think it's pretty important to document that. All implementations
of traditional process-associated (.k.a. "POSIX") locks that I've ever 
come across do detect deadlocks, so it's important to note that OFD locks 
do not.

I plan to add the following text to the fcntl(2) page:

[[
In the current implementation,
no deadlock detection is performed for open file description locks.
(This contrasts with process-associated record locks,
for which the kernel does perform deadlock detection.)
]]

Okay?

cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-05-21 20:58 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-19 13:18 OFD locks and deadlock detection Michael Kerrisk (man-pages)
2014-05-19 14:28 ` Jeff Layton
2014-05-19 18:36   ` Michael Kerrisk (man-pages)
2014-05-20  9:54     ` Jeff Layton
2014-05-20 20:22       ` Michael Kerrisk (man-pages)
2014-05-21 20:58         ` Jeff Layton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox