driver core: force NOIO allocations during unplug
authorOliver Neukum <oneukum@suse.com>
Wed, 16 Sep 2020 19:15:44 +0000 (21:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Sep 2020 06:40:56 +0000 (08:40 +0200)
commitb85300173d027131ced9a654c506785f15cfdd6f
tree9042c615de1b31de2ea45b2bd3105fb83fd0b56a
parent9ef8638bd8c7e06bee087a04af7950cbc6123828
driver core: force NOIO allocations during unplug

There is one overlooked situation under which a driver must not do IO to
allocate memory. You cannot do that while disconnecting a device. A
device being disconnected is no longer functional in most cases, yet IO
may fail only when the handler runs.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20200916191544.5104-1-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/core.c