Re: [PATCH v3] mwifiex: fix sleep in atomic context bugs caused by dev_coredumpv

From: Johannes Berg
Date: Mon May 23 2022 - 09:43:56 EST


On Mon, 2022-05-23 at 14:31 +0300, Kalle Valo wrote:
>
> In a way it would be nice to be able to call dev_coredump from atomic
> contexts, though I don't know how practical it actually is. Is there any
> other option? What about adding a gfp_t parameter to dev_set_name()? Or
> is there an alternative for dev_set_name() which can be called in atomic
> contexts?
>
> Johannes&Greg, any ideas?

If you need to, I guess you can collect the data into some area and then
provide it to devcoredump later? Not sure it's a good idea though since
collecting data can take a while.

johannes