Skip to contentSkip to conversation

Documentation: atomic_open called with shared lock on non-O_CREAT open

PATCH Applied Jeff Layton 2 participants 2 messages Oct 30, 2019 – Nov 7, 2019

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Documentation: atomic_open called with shared lock on non-O_CREAT open

The exclusive lock is only held when O_CREAT is set.

---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/locking.rst +1 -1
index fc3a0704553c..5057e4d9dcd1 100644
@@ -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
 ============	=============================================
 
Signature · 1 line
2.21.0
maintainer Applied
#1 lore raw
Quoted 12 lines · On Wed, 30 Oct 2019 06:46:54 -0400 Jeff Layton <[email protected]> wrote:

The exclusive lock is only held when O_CREAT is set.

---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/filesystems/locking.rst +0 -0
index fc3a0704553c..5057e4d9dcd1 100644

Documentation/filesystems/locking.rst getattr: no · line 110

Quoted 7 lines
Documentation/filesystems/locking.rst +1 -1
@@ -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
 ============	=============================================

Applied, thanks.

jon