summaryrefslogtreecommitdiffstats
path: root/freed-ora/current/f15/revert-fix-oops-in-scsi_run_queue.patch
blob: 3170ed865c58bb900f5486ab02c2aa249f800f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
revert c055f5b2614b4f758ae6cc86733f31fa4c2c5844 from 2.6.38.6

--- b/drivers/scsi/scsi_lib.c
+++ a/drivers/scsi/scsi_lib.c
@@ -400,15 +400,10 @@
 static void scsi_run_queue(struct request_queue *q)
 {
 	struct scsi_device *sdev = q->queuedata;
+	struct Scsi_Host *shost = sdev->host;
-	struct Scsi_Host *shost;
 	LIST_HEAD(starved_list);
 	unsigned long flags;
 
-	/* if the device is dead, sdev will be NULL, so no queue to run */
-	if (!sdev)
-		return;
-
-	shost = sdev->host;
 	if (scsi_target(sdev)->single_lun)
 		scsi_single_lun_run(sdev);
 
OpenPOWER on IntegriCloud