• Kiyoshi Ueda's avatar
    block: fix no diskstat problem · 3c4198e8
    Kiyoshi Ueda authored
    The commit below in 2.6-block/for-2.6.31 causes no diskstat problem
    because the blk_discard_rq() check was added with '&&'.
    It should be 'blk_fs_request() || blk_discard_rq()'.
    This patch does it and fixes the no diskstat problem.
    Please review and apply.
    
    ------ /proc/diskstat without this patch -------------------------------------
       8       0 sda 0 0 0 0 0 0 0 0 0 0 0
    ------------------------------------------------------------------------------
    
    ----- /proc/diskstat with this patch applied ---------------------------------
       8       0 sda 4186 303 373621 61600 9578 3859 107468 169479 2 89755 231059
    ------------------------------------------------------------------------------
    
    --------------------------------------------------------------------------
    commit c69d4854
    Author: Jens Axboe <jens.axboe@oracle.com>
    Date:   Fri Apr 24 08:12:19 2009 +0200
    
        block: include discard requests in IO accounting
    
        We currently don't do merging on ...
    3c4198e8
blk.h 4.46 KB