Re: [PATCH] scsi/mac_esp: Replace bogus memory barrier with spinlock

From: Martin K. Petersen
Date: Mon Apr 24 2017 - 18:30:28 EST



Finn,

> Commit da244654c66e ("[SCSI] mac_esp: fix for quadras with two esp chips")
> added mac_scsi_esp_intr() to handle the IRQ lines from a pair of on-board
> ESP chips (a normal shared IRQ did not work).
>
> Proper mutual exclusion was missing from that patch. This patch fixes
> race conditions between comparison and assignment of esp_chips[]
> pointers.

Ondrej/Michael: Mind reviewing this change?

--
Martin K. Petersen Oracle Linux Engineering