Re: [PATCH v2 2/7] regulator: push allocation in regulator_ena_gpio_request() out of lock

From: Dmitry Osipenko
Date: Mon Aug 17 2020 - 20:25:34 EST


12.08.2020 04:31, Michał Mirosław пишет:
> Move another allocation out of regulator_list_mutex-protected region, as
> reclaim might want to take the same lock.

Is it possible to simply use the GFP_NOWAIT flag in all patches where
there is no real need to reshuffle the code? And then add a small
clarifying comment to the code about why GFP_NOWAIT is used.