diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2011-09-23 10:40:45 +0100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-09-23 19:54:04 +1000 |
commit | 2dba6a911c284603d2085fec1e2d3c142f58a010 (patch) | |
tree | 8db93ad2131afd519b9d618f12841ec5d981c082 /drivers/pnp | |
parent | 7e841526263b3e0042a423513147dfd06c8e998d (diff) | |
download | op-kernel-dev-2dba6a911c284603d2085fec1e2d3c142f58a010.zip op-kernel-dev-2dba6a911c284603d2085fec1e2d3c142f58a010.tar.gz |
md: don't delay reboot by 1 second if no MD devices exist
The md_notify_reboot() method includes a call to mdelay(1000),
to deal with "exotic SCSI devices" which are too volatile on
reboot. The delay is unconditional. Even if the machine does
not have any block devices, let alone MD devices, the kernel
shutdown sequence is slowed down.
1 second does not matter much with physical hardware, but with
certain virtualization use cases any wasted time in the bootup
& shutdown sequence counts for alot.
* drivers/md/md.c: md_notify_reboot() - only impose a delay if
there was at least one MD device to be stopped during reboot
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions