• Jens Axboe's avatar
    block: include discard requests in IO accounting · c69d4854
    Jens Axboe authored
    We currently don't do merging on discard requests, but we potentially
    could. If we do, then we need to include discard requests in the IO
    accounting, or merging would end up decrementing in_flight IO counters
    for an IO which never incremented them.
    
    So enable accounting for discard requests.
    
    Problem found by Nikanth Karthikesan <knikanth@suse.de>
    Signed-off-by: default avatarJens Axboe <jens.axboe@oracle.com>
    c69d4854
blk.h 4.35 KB