>>>>> "Hannes" == Hannes Reinecke <hare@xxxxxxx> writes: Hannes> Originally libfc would just be initializing the refcount to '1', Hannes> and using the disc_mutex to synchronize if and when the final Hannes> put should be happening. This has a race condition as the mutex Hannes> might be delayed, causing other threads to access an invalid Hannes> structure. This patch updates the rport reference counting to Hannes> increase the reference every time 'rport_lookup' is called, and Hannes> decreases the reference correspondingly. This removes the need Hannes> to hold 'disc_mutex' when removing the structure, and avoids the Hannes> above race condition. Applied to 4.8/scsi-queue. -- 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