linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] Device name and RCU string
@ 2025-06-25 13:37 David Sterba
  2025-06-25 13:37 ` [PATCH v2 1/2] btrfs: open code RCU for device name David Sterba
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: David Sterba @ 2025-06-25 13:37 UTC (permalink / raw)
  To: linux-btrfs; +Cc: David Sterba

v2:
- drop patch adding RCU protection around update_dev_time(), there's a
  sleeping allocation inside; after revisiting the RCU requirements, I
  don't think it's needed and we can access the raw string (the same way
  it was done with rcu_string), the time update is called from scratch
  superblocks and after the ->dev_list hook is removed, so there's no
  chance it can be reached from device_list_add

After recent simplifications of the RCU usage in messages, this patchset
implements the RCU protection directly without the RCU string so this
API can be removed completely as we don't have nor plan anything else to
use it for.

David Sterba (2):
  btrfs: open code RCU for device name
  btrfs: remove struct rcu_string

 fs/btrfs/rcu-string.h | 40 ----------------------------------------
 fs/btrfs/volumes.c    | 29 +++++++++++++++++------------
 fs/btrfs/volumes.h    |  6 +++---
 fs/btrfs/zoned.c      | 23 +++++++++++------------
 4 files changed, 31 insertions(+), 67 deletions(-)
 delete mode 100644 fs/btrfs/rcu-string.h

-- 
2.49.0


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

end of thread, other threads:[~2025-07-07 14:28 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 13:37 [PATCH v2 0/2] Device name and RCU string David Sterba
2025-06-25 13:37 ` [PATCH v2 1/2] btrfs: open code RCU for device name David Sterba
2025-06-30  2:24   ` Wang Yugui
2025-06-30 16:21     ` David Sterba
2025-06-30 16:43       ` David Sterba
2025-06-30 17:07         ` Alan Huang
2025-07-01 14:47           ` David Sterba
2025-07-01 23:29         ` Wang Yugui
2025-07-04  3:14           ` David Sterba
2025-07-07 14:28             ` David Sterba
2025-06-25 13:37 ` [PATCH v2 2/2] btrfs: remove struct rcu_string David Sterba
2025-06-26 14:46 ` [PATCH v2 0/2] Device name and RCU string Daniel Vacek

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).