1. 28 4月, 2009 1 次提交
    • T
      block: implement and use [__]blk_end_request_all() · 40cbbb78
      Tejun Heo 提交于
      There are many [__]blk_end_request() call sites which call it with
      full request length and expect full completion.  Many of them ensure
      that the request actually completes by doing BUG_ON() the return
      value, which is awkward and error-prone.
      
      This patch adds [__]blk_end_request_all() which takes @rq and @error
      and fully completes the request.  BUG_ON() is added to to ensure that
      this actually happens.
      
      Most conversions are simple but there are a few noteworthy ones.
      
      * cdrom/viocd: viocd_end_request() replaced with direct calls to
        __blk_end_request_all().
      
      * s390/block/dasd: dasd_end_request() replaced with direct calls to
        __blk_end_request_all().
      
      * s390/char/tape_block: tapeblock_end_request() replaced with direct
        calls to blk_end_request_all().
      
      [ Impact: cleanup ]
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Cc: Russell King <rmk@arm.linux.org.uk>
      Cc: Stephen Rothwell <sfr@canb.auug.org.au>
      Cc: Mike Miller <mike.miller@hp.com>
      Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
      Cc: Jeff Garzik <jgarzik@pobox.com>
      Cc: Rusty Russell <rusty@rustcorp.com.au>
      Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
      Cc: Alex Dubov <oakad@yahoo.com>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      40cbbb78
  2. 24 3月, 2009 4 次提交
  3. 06 9月, 2008 1 次提交
  4. 07 8月, 2008 1 次提交
  5. 22 7月, 2008 2 次提交
  6. 10 5月, 2008 1 次提交
  7. 28 1月, 2008 1 次提交
    • K
      blk_end_request: changing arm (take 4) · 650e9cfd
      Kiyoshi Ueda 提交于
      This patch converts arm's OMAP mailbox driver to use
      blk_end_request interfaces.
      
      If the original code was converted literally, blk_end_request would
      be called with '-EIO' because end_that_request_last() were called
      with '0' (i.e. failure).
      But I think these '0's are bugs in the original code because it's
      unlikely that all requests are treated as failure.
      (The bugs should have no effect unless these requests have an end_io
       callback.)
      
      So I changed them to pass '0' (i.e. success) to blk_end_request.
      
      Cc: Toshihiro Kobayashi <toshihiro.kobayashi@nokia.com>
      Cc: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
      Signed-off-by: NKiyoshi Ueda <k-ueda@ct.jp.nec.com>
      Signed-off-by: NJun'ichi Nomura <j-nomura@ce.jp.nec.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      650e9cfd
  8. 26 1月, 2008 1 次提交
  9. 24 7月, 2007 1 次提交
  10. 09 5月, 2007 1 次提交