>>>>> "Ewan" == Ewan D Milne <emilne@xxxxxxxxxx> writes: Ewan> sd_prep_fn will allocate a larger CDB for the command via Ewan> mempool_alloc for devices using DIF type 2 protection. This CDB Ewan> was being freed in sd_done, which results in a kernel crash if the Ewan> command is retried due to a UNIT ATTENTION. This change moves the Ewan> code to free the larger CDB into sd_unprep_fn instead, which is Ewan> invoked after the request is complete. The 32-byte CDB support predates unprep. This fix is obviously the correct approach. Acked-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html