Repository navigation
Commit 2dba6a9
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>1 parent 7e84152 commit 2dba6a9
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8075 | 8075 | | |
8076 | 8076 | | |
8077 | 8077 | | |
| 8078 | + | |
8078 | 8079 | | |
8079 | 8080 | | |
8080 | 8081 | | |
8081 | 8082 | | |
8082 | 8083 | | |
8083 | | - | |
| 8084 | + | |
8084 | 8085 | | |
8085 | 8086 | | |
8086 | 8087 | | |
| |||
8089 | 8090 | | |
8090 | 8091 | | |
8091 | 8092 | | |
| 8093 | + | |
| 8094 | + | |
8092 | 8095 | | |
8093 | 8096 | | |
8094 | 8097 | | |
8095 | 8098 | | |
8096 | 8099 | | |
8097 | 8100 | | |
8098 | | - | |
| 8101 | + | |
| 8102 | + | |
8099 | 8103 | | |
8100 | 8104 | | |
8101 | 8105 | | |
| |||
0 commit comments