diff options
author | Jens Axboe <jaxboe@fusionio.com> | 2011-01-13 08:47:54 -0500 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-01-13 08:47:54 -0500 |
commit | 81c5e2ae33c4b19e53966b427e33646bf6811830 (patch) | |
tree | a602a6dd100165c8948bfa713e6f0b422dcba5d8 /drivers/scsi/sd.c | |
parent | 797a455d2c682476c3797dbfecf5bf84c1e3b9d3 (diff) | |
parent | fcc57045d53edc35bcce456e60ac4aa802712934 (diff) |
Merge branch 'for-2.6.38/event-handling' into for-2.6.38/core
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index b9ab3a590e4b..8d488a9fef00 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c | |||
@@ -1045,15 +1045,7 @@ static int sd_media_changed(struct gendisk *disk) | |||
1045 | sshdr); | 1045 | sshdr); |
1046 | } | 1046 | } |
1047 | 1047 | ||
1048 | /* | 1048 | if (retval) { |
1049 | * Unable to test, unit probably not ready. This usually | ||
1050 | * means there is no disc in the drive. Mark as changed, | ||
1051 | * and we will figure it out later once the drive is | ||
1052 | * available again. | ||
1053 | */ | ||
1054 | if (retval || (scsi_sense_valid(sshdr) && | ||
1055 | /* 0x3a is medium not present */ | ||
1056 | sshdr->asc == 0x3a)) { | ||
1057 | set_media_not_present(sdkp); | 1049 | set_media_not_present(sdkp); |
1058 | retval = 1; | 1050 | retval = 1; |
1059 | goto out; | 1051 | goto out; |