]> git.ipfire.org Git - ipfire-2.x.git/blame - src/patches/suse-2.6.27.39/patches.arch/s390-12-15-zfcp_abort_handler_for_completions_in_progress.patch
Fix oinkmaster patch.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.arch / s390-12-15-zfcp_abort_handler_for_completions_in_progress.patch
CommitLineData
2cb7cef9
BS
1From: Gerald Schaefer <geraldsc@de.ibm.com>
2Subject: zfcp: Fix abort handler for FSF requests in completion
3References: bnc#487755,LTC#52848
4
5Symptom: Kernel panic during FC switch port offline.
6Problem: When the abort handler cannot find a pending FSF
7 request, the request completion could just be running.
8Solution: Return FAILED in such a case by the abort handler.
9
10Acked-by: John Jolly <jjolly@suse.de>
11Index: 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
16 if (!fsf_req) {
17 write_unlock_irqrestore(&adapter->abort_lock, flags);
18 zfcp_scsi_dbf_event_abort("lte1", adapter, scpnt, NULL, 0);
19- return retval;
20+ return FAILED; /* completion could be in progress */
21 }
22 fsf_req->data = NULL;
23