Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751783AbWBEP4H (ORCPT ); Sun, 5 Feb 2006 10:56:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751773AbWBEPzb (ORCPT ); Sun, 5 Feb 2006 10:55:31 -0500 Received: from tim.rpsys.net ([194.106.48.114]:48797 "EHLO tim.rpsys.net") by vger.kernel.org with ESMTP id S1751782AbWBEPzX (ORCPT ); Sun, 5 Feb 2006 10:55:23 -0500 Subject: [PATCH 12/12] Ensure ide-taskfile calls any driver specific end_request function From: Richard Purdie To: LKML Cc: Bartlomiej Zolnierkiewicz , Linux-ide , Andrew Morton Content-Type: text/plain Date: Sun, 05 Feb 2006 15:55:15 +0000 Message-Id: <1139154916.14624.18.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.4.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 962 Lines: 31 Ensure ide-taskfile.c calls any driver specific end_request function if present. Signed-off-by: Richard Purdie 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); } /* - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/