[rds-devel] [PATCH v3 1/6] workqueue: Inherit per-process allocation flags
Haakon Bugge
haakon.bugge at oracle.com
Thu May 23 10:33:42 UTC 2024
[Moved everyone except Tejun and Lai to bcc]
> On 22 May 2024, at 18:37, Tejun Heo <tj at kernel.org> wrote:
>
>
> Please use a separate field w/ gfp_t. You can probably add it to
> workqueue_attrs.
Christoph Hellvig NAKed the series. If you are interested in pursuing this particular commit, let me suggest:
Add an unsigned int pf_malloc_mask to struct workqueue_struct and copy the PF_MEMALLOC* bits from currect->flags into it in alloc_workqueue(). In process_one_work(), we do an memalloc_flags_{save,restore} using pf_malloc_mask.
I do not see any need for translating the PF_MALLOC* bits into gfp_t and back again.
Thxs, Håkon
More information about the rds-devel
mailing list