]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blob - src/patches/suse-2.6.27.31/patches.arch/s390-12-15-zfcp_abort_handler_for_completions_in_progress.patch
Merge branch 'master' into next
[people/pmueller/ipfire-2.x.git] / src / patches / suse-2.6.27.31 / patches.arch / s390-12-15-zfcp_abort_handler_for_completions_in_progress.patch
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
4
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.
9
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
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