Linux-Fsdevel Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] Documentation: atomic_open called with shared lock on non-O_CREAT open
@ 2019-10-30 10:46 Jeff Layton
  2019-11-07 20:03 ` Jonathan Corbet
  0 siblings, 1 reply; 2+ messages in thread
From: Jeff Layton @ 2019-10-30 10:46 UTC (permalink / raw)
  To: corbet; +Cc: viro, linux-fsdevel, linux-doc

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
 ============	=============================================
 
-- 
2.21.0


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

* Re: [PATCH] Documentation: atomic_open called with shared lock on non-O_CREAT open
  2019-10-30 10:46 [PATCH] Documentation: atomic_open called with shared lock on non-O_CREAT open Jeff Layton
@ 2019-11-07 20:03 ` Jonathan Corbet
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Corbet @ 2019-11-07 20:03 UTC (permalink / raw)
  To: Jeff Layton; +Cc: viro, linux-fsdevel, linux-doc

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

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

end of thread, back to index

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-30 10:46 [PATCH] Documentation: atomic_open called with shared lock on non-O_CREAT open Jeff Layton
2019-11-07 20:03 ` Jonathan Corbet

Linux-Fsdevel Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-fsdevel/0 linux-fsdevel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-fsdevel linux-fsdevel/ https://lore.kernel.org/linux-fsdevel \
		linux-fsdevel@vger.kernel.org
	public-inbox-index linux-fsdevel

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-fsdevel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git