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

2020-07-08 Thread Gabriel Krisman Bertazi
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 noio flag when sending a uevent. If I understand it correctly, considering the

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

2020-07-08 Thread Mikulas Patocka
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 noio flag when sending a uevent. This is the observed deadlock: iSCSI-write holding: rx_queue_mutex