From: Jeff Layton Date: Wed, 30 Oct 2019 10:46:54 +0000 (-0400) Subject: Documentation: atomic_open called with shared lock on non-O_CREAT open X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ff467342d3090350b3b5aa6885d6a55fbb1d0c35;p=linux.git Documentation: atomic_open called with shared lock on non-O_CREAT open The exclusive lock is only held when O_CREAT is set. Signed-off-by: Jeff Layton Signed-off-by: Jonathan Corbet --- diff --git a/Documentation/filesystems/locking.rst b/Documentation/filesystems/locking.rst index fc3a0704553cf..5057e4d9dcd1d 100644 --- a/Documentation/filesystems/locking.rst +++ b/Documentation/filesystems/locking.rst @@ -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 ============ =============================================