On 09/01/2010 06:38 PM, Mike Christie wrote:
wondering if there could be a problem where one thread completes the IO and sets those fields to NULL, but another thread could be completing it too and it would see a scsi_cmnd that is not released and reallocated by
There should not be a not in there. So it should be and it would see a scsi_cmnd that is released and reallocated by the other thread.
the other thread. So for example the fc_eh_abort code still grabs the host_lock when calling CMD_SP and taking a ref and checking that the fsp is not null.
-- 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