Re: [PATCH v4 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-06-08 Thread Martin K. Petersen
> "Wei" == Wei Fang writes: Wei> sas_ata_strategy_handler() adds the works of the ata error handler Wei> to system_unbound_wq. This workqueue asynchronously runs work Wei> items, so the ata error handler will be performed concurrently on Wei> different CPUs. In this

[PATCH v4 1/2] scsi: fix race between simultaneous decrements of ->host_failed

2016-06-07 Thread Wei Fang
sas_ata_strategy_handler() adds the works of the ata error handler to system_unbound_wq. This workqueue asynchronously runs work items, so the ata error handler will be performed concurrently on different CPUs. In this case, ->host_failed will be decreased simultaneously in scsi_eh_finish_cmd() on