On Tue, 2021-09-14 at 11:27 -0400, Martin K. Petersen wrote: > Wendy, > > > Below is error with enabling scsi_log_level; > > > > [108017.427791] ses 0:0:9:0: tag#641 Sense Key : Unit Attention > > [current] > > [108017.427793] ses 0:0:9:0: tag#641 Add. Sense: Bus device reset > > function occurred > > OK. I propose you refine your check to retry on NOT_READY as well as > UNIT_ATTENTION with ASC 0x29. I think that would be a good start. Do > the same for ses_send_diag(). Something is wrong with the outbound email: the list isn't getting copies of this: https://lore.kernel.org/all/yq1v934yysg.fsf@xxxxxxxxxxxxxxxxxxxx/ because you're sending HTML email ... please don't. I still think setting expecting_cc_ua is the best thing to do because it's designed for exactly the problem you're seeing, but open coding it in the loop would be fine as well. James