mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v1 0/1] erofs: start per-CPU workers on demand
@ 2025-03-31  2:20 Sandeep Dhavale
  2025-03-31  2:20 ` [PATCH v1 1/1] erofs: lazily initialize per-CPU workers and CPU hotplug hooks Sandeep Dhavale
  0 siblings, 1 reply; 7+ messages in thread
From: Sandeep Dhavale @ 2025-03-31  2:20 UTC (permalink / raw)
  To: linux-erofs, Gao Xiang, Chao Yu, Yue Hu, Jeffle Xu, Sandeep Dhavale
  Cc: hsiangkao, kernel-team, linux-kernel

erofs currently starts per-CPU workers on module_init() which is not
necessary. This starting of resources on cpu hotplug and unplug
shows up in Android where the erofs in built-in and erofs is
not yet being used.

Following patch moves the creation of per-CPU workers on the first
mount and they are removed when on the last unmount.

I tested this with erofs-utils test as well as running reads on
erofs mountpoint while running aggressive cpu online/offline in a
loop, withoutn any issue.

Thanks,
Sandeep.

Sandeep Dhavale (1):
  erofs: lazily initialize per-CPU workers and CPU hotplug support

 fs/erofs/internal.h |  5 +++++
 fs/erofs/super.c    | 27 +++++++++++++++++++++++++++
 fs/erofs/zdata.c    | 35 +++++++++++++++++++++++------------
 3 files changed, 55 insertions(+), 12 deletions(-)

-- 
2.49.0.472.ge94155a9ec-goog


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

end of thread, other threads:[~2025-03-31  3:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-31  2:20 [PATCH v1 0/1] erofs: start per-CPU workers on demand Sandeep Dhavale
2025-03-31  2:20 ` [PATCH v1 1/1] erofs: lazily initialize per-CPU workers and CPU hotplug hooks Sandeep Dhavale
2025-03-31  2:38   ` Gao Xiang
2025-03-31  3:14     ` Sandeep Dhavale
2025-03-31  3:28       ` Gao Xiang
2025-03-31  3:43         ` Sandeep Dhavale
2025-03-31  3:48         ` Gao Xiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®