[PATCH v1 0/1] erofs: start per-CPU workers on demand
Sandeep Dhavale
dhavale at google.com
Mon Mar 31 13:20:07 AEDT 2025
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
More information about the Linux-erofs
mailing list