James, > 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. The problem with that approach is that (as far as I can tell) we didn't issue the reset in question. We could explicitly set the flag in ses_recv_diag(). However, even though scsi_check_sense() returns RETRY, scsi_decide_disposition() bypasses it because a check condition is considered a "no retry" command by scsi_noretry_cmd(). So despite expecting_cc_ua being set, the retry is not performed. Fun can of worms... -- Martin K. Petersen Oracle Linux Engineering