diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2020-07-08 18:25:20 +0200 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-07-08 18:50:51 +0200 |
commit | 6958c1c640af8c3f40fa8a2eee3b5b905d95b677 (patch) | |
tree | 3ad740210f4672ce601d1f994b6eb8fcaa6f88ee /scripts/Makefile.build | |
parent | dm zoned: Fix zone reclaim trigger (diff) | |
download | linux-6958c1c640af8c3f40fa8a2eee3b5b905d95b677.tar.xz linux-6958c1c640af8c3f40fa8a2eee3b5b905d95b677.zip |
dm: use noio when sending kobject event
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.
The observed deadlock was reported here:
https://www.redhat.com/archives/dm-devel/2020-March/msg00025.html
Reported-by: Khazhismel Kumykov <khazhy@google.com>
Reported-by: Tahsin Erdogan <tahsin@google.com>
Reported-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'scripts/Makefile.build')
0 files changed, 0 insertions, 0 deletions