1. 14 10月, 2014 1 次提交
  2. 13 10月, 2014 2 次提交
  3. 10 10月, 2014 1 次提交
  4. 09 10月, 2014 1 次提交
  5. 07 10月, 2014 2 次提交
  6. 04 10月, 2014 2 次提交
  7. 01 10月, 2014 2 次提交
  8. 28 9月, 2014 1 次提交
    • R
      block: Replace strnicmp with strncasecmp · 58294050
      Rasmus Villemoes 提交于
      The kernel used to contain two functions for length-delimited,
      case-insensitive string comparison, strnicmp with correct semantics
      and a slightly buggy strncasecmp. The latter is the POSIX name, so
      strnicmp was renamed to strncasecmp, and strnicmp made into a wrapper
      for the new strncasecmp to avoid breaking existing users.
      
      To allow the compat wrapper strnicmp to be removed at some point in
      the future, and to avoid the extra indirection cost, do
      s/strnicmp/strncasecmp/g.
      
      Cc: Jens Axboe <axboe@kernel.dk>
      Signed-off-by: NRasmus Villemoes <linux@rasmusvillemoes.dk>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      58294050
  9. 27 9月, 2014 13 次提交
  10. 26 9月, 2014 10 次提交
  11. 23 9月, 2014 5 次提交
    • C
      scsi: move blk_mq_start_request call earlier · fe052529
      Christoph Hellwig 提交于
      Some ATA drivers need the dma drain size workaround, and thus need to
      call blk_mq_start_request before the S/G mapping.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      fe052529
    • C
      block: fix blk_abort_request on blk-mq · 90415837
      Christoph Hellwig 提交于
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      
      Moved blk_mq_rq_timed_out() definition to the private blk-mq.h header.
      Signed-off-by: NJens Axboe <axboe@fb.com>
      90415837
    • M
      blk-timeout: fix blk_add_timer · 5e940aaa
      Ming Lei 提交于
      Commit 8cb34819cdd5d(blk-mq: unshared timeout handler) introduces
      blk-mq's own timeout handler, and removes following line:
      
      	blk_queue_rq_timed_out(q, blk_mq_rq_timed_out);
      
      which then causes blk_add_timer() to bypass adding the timer,
      since blk-mq no longer has q->rq_timed_out_fn defined.
      
      This patch fixes the problem by bypassing the check for blk-mq,
      so that both request deadlines are still set and the rolling
      timer updated.
      Signed-off-by: NMing Lei <ming.lei@canonical.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      5e940aaa
    • J
      blk-mq: limit memory consumption if a crash dump is active · aedcd72f
      Jens Axboe 提交于
      It's not uncommon for crash dump kernels to be limited to 128MB or
      something low in that area. This is normally not a problem for
      devices as we don't use that much memory, but for some shared SCSI
      setups with huge queue depths, it can potentially fill most of
      memory with tons of request allocations. blk-mq does scale back
      when it fails to allocate memory, but it scales back just enough
      so that blk-mq succeeds. This could still leave the system with
      not enough memory to make any real progress.
      
      Check if we are in a kdump environment and limit the hardware
      queues and tag depth.
      Signed-off-by: NJens Axboe <axboe@fb.com>
      aedcd72f
    • M
      blk-mq: remove unnecessary blk_clear_rq_complete() · 2edd2c74
      Ming Lei 提交于
      This patch removes two unnecessary blk_clear_rq_complete(),
      the REQ_ATOM_COMPLETE flag is cleared inside blk_mq_start_request(),
      so:
      
      	- The blk_clear_rq_complete() in blk_flush_restore_request()
      	needn't because the request will be freed later, and clearing
      	it here may open a small race window with timeout.
      
      	- The blk_clear_rq_complete() in blk_mq_requeue_request() isn't
      	necessary too, even though REQ_ATOM_STARTED is cleared in
      	__blk_mq_requeue_request(), in theory it still may cause a small
      	race window with timeout since the two clear_bit() may be
      	reordered.
      Signed-off-by: NMing Lei <ming.lei@canoical.com>
      Signed-off-by: NJens Axboe <axboe@fb.com>
      2edd2c74