[SCSI] Reduce polling in sd.c
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 11 Oct 2006 20:48:28 +0000 (16:48 -0400)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Wed, 15 Nov 2006 18:11:36 +0000 (12:11 -0600)
If a drive reports that no media is present, there's no point in
continuing to ask it about media status.  This patch (as696) cuts the
TUR polling short as soon as the drive reports no media instead of
going a full 3 iterations.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

No differences found