Re: [PATCH] net: usb: Convert tasklet API to new bottom half workqueue mechanism

From: Oliver Neukum
Date: Tue Jun 10 2025 - 05:54:47 EST


On 09.06.25 11:53, Miao, Jun wrote:

You can change it to GFP_KERNEL since this is not atomic context now.


Thanks, the usbnet_bh() function only be called by usbnet_bh_workqueue which is sleepable.

Yes, but it can be waited on in usbnet_stop(), which in turn can
be called for a device reset. Hence this must be GFP_NOIO, not
GFP_KERNEL.

Regards
Oliver