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

Message ID 20191030104654.6315-1-jlayton@kernel.org
State New
Headers show
Series
  • Documentation: atomic_open called with shared lock on non-O_CREAT open
Related show

Commit Message

Jeff Layton Oct. 30, 2019, 10:46 a.m. UTC
The exclusive lock is only held when O_CREAT is set.

Signed-off-by: Jeff Layton <jlayton@kernel.org>
---
 Documentation/filesystems/locking.rst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jonathan Corbet Nov. 7, 2019, 8:03 p.m. UTC | #1
On Wed, 30 Oct 2019 06:46:54 -0400
Jeff Layton <jlayton@kernel.org> wrote:

> The exclusive lock is only held when O_CREAT is set.
> 
> Signed-off-by: Jeff Layton <jlayton@kernel.org>
> ---
>  Documentation/filesystems/locking.rst | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/Documentation/filesystems/locking.rst b/Documentation/filesystems/locking.rst
> index fc3a0704553c..5057e4d9dcd1 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
>  ============	=============================================

Applied, thanks.

jon

Patch
diff mbox series

diff --git a/Documentation/filesystems/locking.rst b/Documentation/filesystems/locking.rst
index fc3a0704553c..5057e4d9dcd1 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
 ============	=============================================