Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: James Bottomley
Date: Tuesday, May 4, 2010 - 1:30 pm

On Tue, 2010-05-04 at 15:27 -0500, Mike Christie wrote:

Ah, yes, missed that.

However there are other problems then.  We can't just eat all unit
attentions on the BLOCK_PC path because some of the user programs want
to see them (CD burners for one).  I know the patch allows some to
proceed upwards, but it's risky making all except device not started do
a retry.

I'm a bit stumped on this one ... the intention of BLOCK_PC is that the
caller simply retries if they get a unit attention (which is what all
SCSI code does).  The block code doesn't want to look at the sense data
but at the error return.  I suppose we could make UNIT_ATTENTION
translate to -EAGAIN and have block do the right thing?

James


--
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Retry commands with UNIT_ATTENTION sense codes, Hannes Reinecke, (Tue May 4, 7:48 am)
Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes, James Bottomley, (Tue May 4, 9:26 am)
Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes, James Bottomley, (Tue May 4, 1:30 pm)
Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes, James Bottomley, (Tue May 4, 1:51 pm)
Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes, Hannes Reinecke, (Tue May 4, 11:26 pm)
Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes, James Bottomley, (Wed May 5, 6:19 am)
Re: [PATCH] Retry commands with UNIT_ATTENTION sense codes, Christoph Hellwig, (Wed May 5, 6:28 am)