04 Aug, 2011

1 commit

  • init_fault_attr_dentries() is used to export fault_attr via debugfs.
    But it can only export it in debugfs root directory.

    Per Forlin is working on mmc_fail_request which adds support to inject
    data errors after a completed host transfer in MMC subsystem.

    The fault_attr for mmc_fail_request should be defined per mmc host and
    export it in debugfs directory per mmc host like
    /sys/kernel/debug/mmc0/mmc_fail_request.

    init_fault_attr_dentries() doesn't help for mmc_fail_request. So this
    introduces fault_create_debugfs_attr() which is able to create a
    directory in the arbitrary directory and replace
    init_fault_attr_dentries().

    [akpm@linux-foundation.org: extraneous semicolon, per Randy]
    Signed-off-by: Akinobu Mita
    Tested-by: Per Forlin
    Cc: Jens Axboe
    Cc: Christoph Lameter
    Cc: Pekka Enberg
    Cc: Matt Mackall
    Cc: Randy Dunlap
    Cc: Stephen Rothwell
    Signed-off-by: Andrew Morton
    Signed-off-by: Linus Torvalds

    Akinobu Mita
     

21 Apr, 2010

1 commit

  • blk_rq_timed_out_timer() relied on blk_add_timer() never returning a
    timer value of zero, but commit 7838c15b8dd18e78a523513749e5b54bda07b0cb
    removed the code that bumped this value when it was zero.
    Therefore when jiffies is near wrap we could get unlucky & not set the
    timeout value correctly.

    This patch uses a flag to indicate that the timeout value was set and so
    handles jiffies wrap correctly, and it keeps all the logic in one
    function so should be easier to maintain in the future.

    Signed-off-by: Richard Kennedy
    Cc: stable@kernel.org
    Signed-off-by: Jens Axboe

    Richard Kennedy
     

28 Apr, 2009

1 commit


24 Apr, 2009

1 commit

  • Very rarely under stress testing of dm, oopses are occuring as
    something tampers with an old stack frame. This has been traced back
    to blk_abort_queue() leaving a timeout_list pointing to the stack.
    The reason is that sometimes blk_abort_request() won't delete the
    timer (if the request is marked as complete but before the timer has
    been removed, a small race window). Fix this by splicing back from
    the ususally empty list to the q->timeout_list.

    Signed-off-by: Hannes Reinecke
    Signed-off-by: Jens Axboe

    Hannes Reinecke
     

22 Apr, 2009

1 commit


18 Feb, 2009

1 commit


29 Dec, 2008

3 commits


06 Nov, 2008

1 commit

  • This patch (as1159b) changes the timeout routines in the block core to
    use round_jiffies_up(). There's no point in rounding the timer
    deadline down, since if it expires too early we will have to restart
    it.

    The patch also removes some unnecessary tests when a request is
    removed from the queue's timer list.

    Signed-off-by: Alan Stern
    Signed-off-by: Jens Axboe

    Alan Stern
     

09 Oct, 2008

4 commits