• Ingo Molnar's avatar
    [PATCH] blk: max_sectors tunables · 3ed45fdf
    Ingo Molnar authored
    Introduces two new /sys/block values:
    
      /sys/block/*/queue/max_hw_sectors_kb
      /sys/block/*/queue/max_sectors_kb
    
    max_hw_sectors_kb is the maximum that the driver can handle and is
    readonly.  max_sectors_kb is the current max_sectors value and can be tuned
    by root.  PAGE_SIZE granularity is enforced.
    
    It's all locking-safe and all affected layered drivers have been updated as
    well.  The patch has been in testing for a couple of weeks already as part
    of the voluntary-preempt patches and it works just fine - people use it to
    reduce IDE IRQ handling latencies.
    Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    3ed45fdf
multipath.c 14.4 KB