Re: [PATCH v1 2/3] Treewide: Stop corrupting socket's task_frag

From: Benjamin Coddington
Date: Mon Nov 21 2022 - 09:36:13 EST


On 21 Nov 2022, at 8:56, David Howells wrote:

> Benjamin Coddington <bcodding@xxxxxxxxxx> wrote:
>
>> Since moving to memalloc_nofs_save/restore, SUNRPC has stopped setting the
>> GFP_NOIO flag on sk_allocation which the networking system uses to decide
>> when it is safe to use current->task_frag.
>
> Um, what's task_frag?

Its a per-task page_frag used to coalesce small writes for networking -- see:

5640f7685831 net: use a per task frag allocator

Ben