1 From: Gerald Schaefer <geraldsc@de.ibm.com>
2 Subject: zfcp: Fix abort handler for FSF requests in completion
3 References: bnc#487755,LTC#52848
5 Symptom: Kernel panic during FC switch port offline.
6 Problem: When the abort handler cannot find a pending FSF
7 request, the request completion could just be running.
8 Solution: Return FAILED in such a case by the abort handler.
10 Acked-by: John Jolly <jjolly@suse.de>
11 Index: linux-2.6.27.21-5.1.20090327_mz08/drivers/s390/scsi/zfcp_scsi.c
12 ===================================================================
13 --- linux-2.6.27.21-5.1.20090327_mz08.orig/drivers/s390/scsi/zfcp_scsi.c
14 +++ linux-2.6.27.21-5.1.20090327_mz08/drivers/s390/scsi/zfcp_scsi.c
15 @@ -175,7 +175,7 @@ static int zfcp_scsi_eh_abort_handler(st
17 write_unlock_irqrestore(&adapter->abort_lock, flags);
18 zfcp_scsi_dbf_event_abort("lte1", adapter, scpnt, NULL, 0);
20 + return FAILED; /* completion could be in progress */