Re: [dm-devel] dm: use noio when sending kobject event

2020-07-10 Thread Mike Snitzer
On Wed, Jul 08 2020 at 3:37pm -0400, Gabriel Krisman Bertazi wrote: > Mike Snitzer writes: > > > On Wed, Jul 08 2020 at 2:26pm -0400, > > Gabriel Krisman Bertazi wrote: > > > >> If I understand it correctly, considering the deadlock you shared, this > >> doesn't solve the entire issue. For

Re: [dm-devel] dm: use noio when sending kobject event

2020-07-08 Thread Gabriel Krisman Bertazi
Mike Snitzer writes: > On Wed, Jul 08 2020 at 2:26pm -0400, > Gabriel Krisman Bertazi wrote: > >> If I understand it correctly, considering the deadlock you shared, this >> doesn't solve the entire issue. For instance, kobject_uevent_env on the >> GFP_NOIO thread waits on uevent_sock_mutex,

Re: [dm-devel] dm: use noio when sending kobject event

2020-07-08 Thread Mike Snitzer
On Wed, Jul 08 2020 at 2:26pm -0400, Gabriel Krisman Bertazi wrote: > Mikulas Patocka writes: > > > kobject_uevent may allocate memory and it may be called while there are dm > > devices suspended. The allocation may recurse into a suspended device, > > causing a deadlock. We must set the