Re: [PATCH 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-11 Thread Dmitry Osipenko
11.08.2020 20:20, Michał Mirosław пишет: > On Tue, Aug 11, 2020 at 07:27:43PM +0300, Dmitry Osipenko wrote: >> 11.08.2020 18:59, Dmitry Osipenko пишет: >>> 11.08.2020 04:07, Michał Mirosław пишет: Allocating memory with regulator_list_mutex held makes lockdep unhappy when memory pressure

Re: [PATCH 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-11 Thread Michał Mirosław
On Tue, Aug 11, 2020 at 07:27:43PM +0300, Dmitry Osipenko wrote: > 11.08.2020 18:59, Dmitry Osipenko пишет: > > 11.08.2020 04:07, Michał Mirosław пишет: > >> Allocating memory with regulator_list_mutex held makes lockdep unhappy > >> when memory pressure makes the system do fs_reclaim on eg. eMMC

Re: [PATCH 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-11 Thread Dmitry Osipenko
11.08.2020 18:59, Dmitry Osipenko пишет: > 11.08.2020 04:07, Michał Mirosław пишет: >> Allocating memory with regulator_list_mutex held makes lockdep unhappy >> when memory pressure makes the system do fs_reclaim on eg. eMMC using >> a regulator. Push the lock inside regulator_init_coupling()

Re: [PATCH 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-11 Thread Dmitry Osipenko
11.08.2020 04:07, Michał Mirosław пишет: > Allocating memory with regulator_list_mutex held makes lockdep unhappy > when memory pressure makes the system do fs_reclaim on eg. eMMC using > a regulator. Push the lock inside regulator_init_coupling() after the > allocation. ... Reviewed-by: Dmitry

[PATCH 1/7] regulator: push allocation in regulator_init_coupling() outside of lock

2020-08-10 Thread Michał Mirosław
Allocating memory with regulator_list_mutex held makes lockdep unhappy when memory pressure makes the system do fs_reclaim on eg. eMMC using a regulator. Push the lock inside regulator_init_coupling() after the allocation. == WARNING: possible