Commit 848ade90 authored by Christian Loehle's avatar Christian Loehle Committed by Martin K. Petersen

scsi: sd: Do not exit sd_spinup_disk() quietly

The sd_spinup_disk() function logs what is happening. Unfortunately this
output stops if the media was marked as removed in the meantime. Add a
print for this case too.

Link: https://lore.kernel.org/r/CWXP265MB26803209FD08A64222EEEA02C4FD9@CWXP265MB2680.GBRP265.PROD.OUTLOOK.COMReviewed-by: default avatarBart Van Assche <bvanassche@acm.org>
Signed-off-by: default avatarChristian Loehle <cloehle@hyperstone.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 7a3795f2
...@@ -2136,8 +2136,10 @@ sd_spinup_disk(struct scsi_disk *sdkp) ...@@ -2136,8 +2136,10 @@ sd_spinup_disk(struct scsi_disk *sdkp)
* doesn't have any media in it, don't bother * doesn't have any media in it, don't bother
* with any more polling. * with any more polling.
*/ */
if (media_not_present(sdkp, &sshdr)) if (media_not_present(sdkp, &sshdr)) {
sd_printk(KERN_NOTICE, sdkp, "Media removed, stopped polling\n");
return; return;
}
if (the_result) if (the_result)
sense_valid = scsi_sense_valid(&sshdr); sense_valid = scsi_sense_valid(&sshdr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment