1. 02 2月, 2008 33 次提交
  2. 01 2月, 2008 1 次提交
  3. 28 1月, 2008 2 次提交
    • K
      blk_end_request: changing ide-cd (take 4) · aaa04c28
      Kiyoshi Ueda 提交于
      This patch converts ide-cd (cdrom_newpc_intr()) to use blk_end_request
      interfaces.  Related 'uptodate' arguments are converted to 'error'.
      
      In PIO mode, ide-cd (cdrom_newpc_intr()) needs to defer
      end_that_request_last() until the device clears DRQ_STAT and raises
      an interrupt after end_that_request_first().
      So blk_end_request() has to return without completing request
      even if no leftover in the request.
      
      ide-cd uses blk_end_request_callback() and a dummy callback function,
      which just returns value '1', to tell blk_end_request_callback()
      about that.
      
      Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.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>
      aaa04c28
    • K
      blk_end_request: changing ide normal caller (take 4) · 5e36bb6e
      Kiyoshi Ueda 提交于
      This patch converts "normal" parts of ide to use blk_end_request
      interfaces.  Related 'uptodate' arguments are converted to 'error'.
      
      The conversion of 'uptodate' to 'error' is done only for the internal
      function, __ide_end_request().
      ide_end_request() was not changed since it's exported and used
      by many ide drivers.
      
      With this patch, blkdev_dequeue_request() in __ide_end_request() is
      moved to blk_end_request, since blk_end_request takes care of
      dequeueing request like below:
      
      	if (!list_empty(&rq->queuelist))
      		blkdev_dequeue_request(rq);
      
      In the case of ide,
        o 'dequeue' variable of __ide_end_request() is 1 only when the request
          is still linked to the queue (i.e. rq->queuelist is not empty)
        o 'dequeue' variable of __ide_end_request() is 0 only when the request
          has already been removed from the queue (i.e. rq->queuelist is empty)
      So blk_end_request can handle it correctly although ide always run
      thought the code above.
      
      Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.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>
      5e36bb6e
  4. 27 1月, 2008 4 次提交