lkml.org 
[lkml]   [2005]   [Feb]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    SubjectRe: [PATCH 2.6.11-rc2 10/29] ide: __ide_do_rw_disk() return value fix
    > 10_ide_do_rw_disk_pre_task_out_intr_return_fix.patch
    >
    > In __ide_do_rw_disk(), ide_started used to be returned blindly
    > after issusing PIO write. This can cause hang if
    > pre_task_out_intr() returns ide_stopped due to failed
    > ide_wait_stat() test. Fixed to pass the return value of
    > pre_task_out_intr().


    Signed-off-by: Tejun Heo <tj@home-tj.org>


    Index: linux-ide-export/drivers/ide/ide-disk.c
    ===================================================================
    --- linux-ide-export.orig/drivers/ide/ide-disk.c 2005-02-02 10:28:03.898413061 +0900
    +++ linux-ide-export/drivers/ide/ide-disk.c 2005-02-02 10:28:04.080383536 +0900
    @@ -253,8 +253,7 @@ ide_startstop_t __ide_do_rw_disk (ide_dr
    /* FIXME: ->OUTBSYNC ? */
    hwif->OUTB(command, IDE_COMMAND_REG);

    - pre_task_out_intr(drive, rq);
    - return ide_started;
    + return pre_task_out_intr(drive, rq);
    }
    }
    EXPORT_SYMBOL_GPL(__ide_do_rw_disk);
    -
    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/
    \
     
     \ /
      Last update: 2005-03-22 14:10    [W:0.018 / U:9.420 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site