1. 15 Nov, 2010 3 commits
    • Vivek Goyal's avatar
      block: fix amiga and atari floppy driver compile warning · 3e9bb2a0
      Vivek Goyal authored
      Geert, my crosstool don't produce warning below. I guess this has to do
      something with compiler version.
      
      - Geert noticed following warning during compilation.
      
        drivers/block/amiflop.c:1344: warning: ‘rq’ may be used uninitialized in
        this function
        drivers/block/ataflop.c:1402: warning: ‘rq’ may be used uninitialized in
        this function
      
      - Initialize rq to NULL to fix the warning. If we can't find a suitable request
        to dispatch, this function should return NULL instead of a possibly garbage
        pointer.
      
      - Cross compile tested only. Don't have hardware to test it.
      Reported-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
      Signed-off-by: default avatarVivek Goyal <vgoyal@redhat.com>
      Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
      3e9bb2a0
    • Vivek Goyal's avatar
      blk-throttle: Fix calculation of max number of WRITES to be dispatched · c2f6805d
      Vivek Goyal authored
      o Currently we try to dispatch more READS and less WRITES (75%, 25%) in one
        dispatch round. ummy pointed out that there is a bug in max_nr_writes
        calculation. This patch fixes it.
      Reported-by: default avatarummy y <yummylln@yahoo.com.cn>
      Signed-off-by: default avatarVivek Goyal <vgoyal@redhat.com>
      Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
      c2f6805d
    • Greg Thelen's avatar
      ioprio: grab rcu_read_lock in sys_ioprio_{set,get}() · d69b78ba
      Greg Thelen authored
      Using:
      - CONFIG_LOCKUP_DETECTOR=y
      - CONFIG_PREEMPT=y
      - CONFIG_LOCKDEP=y
      - CONFIG_PROVE_LOCKING=y
      - CONFIG_PROVE_RCU=y
      found a missing rcu lock during boot on a 512 MiB x86_64 ubuntu vm:
        ===================================================
        [ INFO: suspicious rcu_dereference_check() usage. ]
        ---------------------------------------------------
        kernel/pid.c:419 invoked rcu_dereference_check() without protection!
      
        other info that might help us debug this:
      
        rcu_scheduler_active = 1, debug_locks = 0
        1 lock held by ureadahead/1355:
         #0:  (tasklist_lock){.+.+..}, at: [<ffffffff8115bc09>] sys_ioprio_set+0x7f/0x29e
      
        stack backtrace:
        Pid: 1355, comm: ureadahead Not tainted 2.6.37-dbg-DEV #1
        Call Trace:
         [<ffffffff8109c10c>] lockdep_rcu_dereference+0xaa/0xb3
         [<ffffffff81088cbf>] find_task_by_pid_ns+0x44/0x5d
         [<ffffffff81088cfa>] find_task_by_vpid+0x22/0x24
         [<ffffffff8115bc3e>] sys_ioprio_set+0xb4/0x29e
         [<ffffffff8147cf21>] ? trace_hardirqs_off_thunk+0x3a/0x3c
         [<ffffffff8105c409>] sysenter_dispatch+0x7/0x2c
         [<ffffffff8147cee2>] ? trace_hardirqs_on_thunk+0x3a/0x3f
      
      The fix is to:
      a) grab rcu lock in sys_ioprio_{set,get}() and
      b) avoid grabbing tasklist_lock.
      Discussion in: http://marc.info/?l=linux-kernel&m=128951324702889Signed-off-by: default avatarGreg Thelen <gthelen@google.com>
      Acked-by: default avatarPaul E. McKenney <paulmck@linux.vnet.ibm.com>
      Reviewed-by: default avatarOleg Nesterov <oleg@redhat.com>
      
      Modified by Jens to remove the now redundant inner rcu lock and
      unlock since they are now protected by the outer lock.
      Signed-off-by: default avatarJens Axboe <jaxboe@fusionio.com>
      d69b78ba
  2. 12 Nov, 2010 1 commit
  3. 11 Nov, 2010 2 commits
  4. 10 Nov, 2010 11 commits
  5. 06 Nov, 2010 4 commits
  6. 05 Nov, 2010 19 commits