All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCHSET 0/2] xfs: elide defer work ->create_done if no intent
@ 2023-12-05  5:36 Darrick J. Wong
  2023-12-05  5:36 ` [PATCH 1/2] xfs: document what LARP means Darrick J. Wong
  2023-12-05  5:36 ` [PATCH 2/2] xfs: elide ->create_done calls for unlogged deferred work Darrick J. Wong
  0 siblings, 2 replies; 9+ messages in thread
From: Darrick J. Wong @ 2023-12-05  5:36 UTC (permalink / raw)
  To: hch, chandanbabu, djwong; +Cc: linux-xfs

Hi all,

Christoph pointed out that the defer ops machinery doesn't need to call
->create_done if the deferred work item didn't generate a log intent
item in the first place.  Let's clean that up and save an indirect call
in the non-logged xattr update call path.

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

This has been lightly tested with fstests.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=defer-elide-create-done-6.7
---
 fs/xfs/libxfs/xfs_defer.c |    4 ++++
 fs/xfs/xfs_attr_item.c    |    3 ---
 fs/xfs/xfs_sysfs.c        |    7 +++++++
 3 files changed, 11 insertions(+), 3 deletions(-)


^ permalink raw reply	[flat|nested] 9+ messages in thread
* [PATCHSET v2 0/2] xfs: elide defer work ->create_done if no intent
@ 2023-12-07  2:23 Darrick J. Wong
  2023-12-07  2:28 ` [PATCH 1/2] xfs: document what LARP means Darrick J. Wong
  0 siblings, 1 reply; 9+ messages in thread
From: Darrick J. Wong @ 2023-12-07  2:23 UTC (permalink / raw)
  To: chandanbabu, hch, djwong; +Cc: linux-xfs

Hi all,

Christoph pointed out that the defer ops machinery doesn't need to call
->create_done if the deferred work item didn't generate a log intent
item in the first place.  Let's clean that up and save an indirect call
in the non-logged xattr update call path.

v2: pick up rvb tags

If you're going to start using this code, I strongly recommend pulling
from my git trees, which are linked below.

This has been lightly tested with fstests.  Enjoy!
Comments and questions are, as always, welcome.

--D

kernel git tree:
https://git.kernel.org/cgit/linux/kernel/git/djwong/xfs-linux.git/log/?h=defer-elide-create-done-6.8
---
 fs/xfs/libxfs/xfs_defer.c |    4 ++++
 fs/xfs/xfs_attr_item.c    |    3 ---
 fs/xfs/xfs_sysfs.c        |    9 +++++++++
 3 files changed, 13 insertions(+), 3 deletions(-)


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

end of thread, other threads:[~2023-12-07  2:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-05  5:36 [PATCHSET 0/2] xfs: elide defer work ->create_done if no intent Darrick J. Wong
2023-12-05  5:36 ` [PATCH 1/2] xfs: document what LARP means Darrick J. Wong
2023-12-05  5:38   ` Christoph Hellwig
2023-12-05  5:50     ` Darrick J. Wong
2023-12-05  5:56       ` Christoph Hellwig
2023-12-05  6:09         ` Darrick J. Wong
2023-12-05  5:36 ` [PATCH 2/2] xfs: elide ->create_done calls for unlogged deferred work Darrick J. Wong
2023-12-05  5:39   ` Christoph Hellwig
  -- strict thread matches above, loose matches on Subject: below --
2023-12-07  2:23 [PATCHSET v2 0/2] xfs: elide defer work ->create_done if no intent Darrick J. Wong
2023-12-07  2:28 ` [PATCH 1/2] xfs: document what LARP means Darrick J. Wong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.