Home
last modified time | relevance | path

Searched hist:"6245838 f" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/base/
H A Dcore.c6245838f Mon Mar 22 12:36:37 CDT 2010 Hugh Daschbach <hdasch@broadcom.com> Driver core: Protect device shutdown from hot unplug events.

While device_shutdown() walks through devices_kset to shutdown all
devices, device unplug events may race to shutdown individual devices.
Specifically, sd_shutdown(), on behalf of fc_starget_delete(), has
been observed deleting devices during device_shutdown()'s list
traversal. So we factor out list_for_each_entry_safe_reverse(...) in
favor of while (!list_empty(...)).

Signed-off-by: Hugh Daschbach <hdasch@broadcom.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>