On Mon, Oct 23, 2023 at 11:28:35AM +0200, Hannes Reinecke wrote: > SCSI_LOG_ERROR_RECOVERY(3, > sdev_printk(KERN_INFO, sdev, > "%s: BDR failed\n", current->comm)); > + list_for_each_entry_safe(scmd, next, work_q, eh_entry) { Same as before, you want to loop over the new `tmp_list`, `work_q` should be empty here. > + if (scmd->device != sdev) > + continue; > + if (rtn == SUCCESS) > + list_move_tail(&scmd->eh_entry, &check_list); > + else if (rtn == FAST_IO_FAIL) { > + set_host_byte(scmd, DID_TRANSPORT_FAILFAST); > + scsi_eh_finish_cmd(scmd, done_q); > + } > } -- Best Regards, Benjamin Block / Linux on IBM Z Kernel Development IBM Deutschland Research & Development GmbH / https://www.ibm.com/privacy Vors. Aufs.-R.: Gregor Pillen / Geschäftsführung: David Faller Sitz der Ges.: Böblingen / Registergericht: AmtsG Stuttgart, HRB 243294