* [PATCH 12/12] Ensure ide-taskfile calls any driver specific end_request function
@ 2006-02-05 15:55 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2006-02-05 15:55 UTC (permalink / raw)
To: LKML; +Cc: Bartlomiej Zolnierkiewicz, Linux-ide, Andrew Morton
Ensure ide-taskfile.c calls any driver specific end_request function
if present.
Signed-off-by: Richard Purdie <rpurdie@rpsys.net>
Index: linux-2.6.15/drivers/ide/ide-taskfile.c
===================================================================
--- linux-2.6.15.orig/drivers/ide/ide-taskfile.c 2006-01-03 03:21:10.000000000 +0000
+++ linux-2.6.15/drivers/ide/ide-taskfile.c 2006-02-04 14:02:23.000000000 +0000
@@ -372,7 +372,13 @@
}
}
- ide_end_request(drive, 1, rq->hard_nr_sectors);
+ if (rq->rq_disk) {
+ ide_driver_t *drv;
+
+ drv = *(ide_driver_t **)rq->rq_disk->private_data;;
+ drv->end_request(drive, 1, rq->hard_nr_sectors);
+ } else
+ ide_end_request(drive, 1, rq->hard_nr_sectors);
}
/*
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-02-05 15:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-05 15:55 [PATCH 12/12] Ensure ide-taskfile calls any driver specific end_request function Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox