On 18.12.2015 14:26, Sumit Saxena wrote: > This patch will do synhronization between OCR function and AEN function using "reset_mutex" lock. > reset_mutex will be acquire only in first half of the AEN function which issue DCMD. Second half > of the function calls SCSI API (scsi_add_device/scsi_remove_device) should be out of reset_mutex > to avoid deadlock between scsi_eh thread and Driver. > > During chip reset(inside OCR function), there should not be any PCI access and AEN function > (which is called in delayed context) may be firirng DCMDs(doing PCI writes) when chip reset is > happening in parallel which will cause FW fault. This patch will solve the problem by making > AEN thread and OCR thread mutually exclusive. > > Signed-off-by: Sumit Saxena <sumit.saxena@xxxxxxxxxxxxx> > Signed-off-by: Kashyap Desai <kashyap.desai@xxxxxxxxxxxxx> You have removed the no more aen_mutex from megasas_instance later in 5/15 , that's ok for me. Reviewed-by: Tomas Henzl <thenzl@xxxxxxxxxx> Tomas -- 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