>>>>> "Hannes" == Hannes Reinecke <hare@xxxxxxx> writes: Hannes> Upon command completion the lpfc driver would call ->done() on Hannes> the scsi command before taking the host lock and releasing the Hannes> command internally. This opens up a race window there this Hannes> command might be re-used after ->done(), leading to a double Hannes> completion on the same command. Hannes> This patch takes the host lock before accessing the scsi Hannes> command, and disconnect the internal command under the same Hannes> lock. James/Dick: Please review. -- 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