aboutsummaryrefslogtreecommitdiff
path: root/mm/mincore.c
diff options
context:
space:
mode:
authorSwen Schillig <swen@vnet.ibm.com>2009-04-17 15:08:06 +0200
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-04-27 10:07:28 -0500
commit94ab4b38b2ab35a8ca955f4821c970a0ed7ec9ec (patch)
tree78b0d65b56e48a4753f39d277a13030f6d8b77d9 /mm/mincore.c
parent828bc1212a685918bbdb5866504b63eea2c241f5 (diff)
[SCSI] zfcp: avoid false ERP complete due to sema race
The ERP thread is performing a task before it is executing the corresponding down on the semaphore. The response handler of the just started exchange config should wait for the completion by performing a down on this semaphore. Since this semaphore is still positive from the ERP enqueue the handler won't wait and therefore the exchange config will always fail leaving the adapter in error. The problem can be solved by performing the down on the semaphore before starting an ERP task. This is the logically correct order. Only walk the ERP loop if there is a task to perform. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Signed-off-by: Christof Schmitt <christof.schmitt@de.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'mm/mincore.c')
0 files changed, 0 insertions, 0 deletions