From: James Bottomley Date: Thu, 23 Dec 2010 05:29:40 +0000 (-0600) Subject: Merge branch 'block' X-Git-Tag: v2.6.38-rc1~27^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ce82ba80477c2cf3576f1e42c4c377e9995633a7;p=platform%2Fkernel%2Flinux-exynos.git Merge branch 'block' --- ce82ba80477c2cf3576f1e42c4c377e9995633a7 diff --cc drivers/scsi/sd.c index 365024b0,8d488a9..b65e65a --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@@ -1043,16 -1045,9 +1043,8 @@@ static int sd_media_changed(struct gend sshdr); } - /* - * Unable to test, unit probably not ready. This usually - * means there is no disc in the drive. Mark as changed, - * and we will figure it out later once the drive is - * available again. - */ - if (retval || (scsi_sense_valid(sshdr) && - /* 0x3a is medium not present */ - sshdr->asc == 0x3a)) { + if (retval) { set_media_not_present(sdkp); - retval = 1; goto out; }