Documentation: atomic_open called with shared lock on non-O_CREAT open
authorJeff Layton <jlayton@kernel.org>
Wed, 30 Oct 2019 10:46:54 +0000 (06:46 -0400)
committerJonathan Corbet <corbet@lwn.net>
Thu, 7 Nov 2019 20:17:25 +0000 (13:17 -0700)
The exclusive lock is only held when O_CREAT is set.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/filesystems/locking.rst

index fc3a070..5057e4d 100644 (file)
@@ -105,7 +105,7 @@ getattr:    no
 listxattr:     no
 fiemap:                no
 update_time:   no
-atomic_open:   exclusive
+atomic_open:   shared (exclusive if O_CREAT is set in open flags)
 tmpfile:       no
 ============   =============================================