1. 30 10月, 2009 8 次提交
  2. 02 10月, 2009 9 次提交
  3. 05 9月, 2009 7 次提交
  4. 14 8月, 2009 9 次提交
  5. 24 5月, 2009 5 次提交
  6. 19 5月, 2009 2 次提交
    • T
      block: set rq->resid_len to blk_rq_bytes() on issue · 5f49f631
      Tejun Heo 提交于
      In commit c3a4d78c, while introducing
      rq->resid_len, the default value of residue count was changed from
      full count to zero.  The conversion was done under the assumption that
      when a request fails residue count wasn't defined.  However, Boaz and
      James pointed out that this wasn't true and the residue count should
      be preserved for failed requests too.
      
      This patchset restores the original behavior by setting rq->resid_len
      to blk_rq_bytes(rq) on request start and restoring explicit clearing
      in affected drivers.  While at it, take advantage of the fact that
      rq->resid_len is set to full count where applicable.
      
      * ide-cd: rq->resid_len cleared on pc success
      
      * mptsas: req->resid_len cleared on success
      
      * sas_expander: rsp/req->resid_len cleared on success
      
      * mpt2sas_transport: req->resid_len cleared on success
      
      * ide-cd, ide-tape, mptsas, sas_host_smp, mpt2sas_transport, ub: take
        advantage of initial full count to simplify code
      
      Boaz Harrosh spotted bug in resid_len initialization.  Fixed as
      suggested.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Acked-by: NBorislav Petkov <petkovbb@googlemail.com>
      Cc: Boaz Harrosh <bharrosh@panasas.com>
      Cc: James Bottomley <James.Bottomley@HansenPartnership.com>
      Cc: Pete Zaitcev <zaitcev@redhat.com>
      Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
      Cc: Sergei Shtylyov <sshtylyov@ru.mvista.com>
      Cc: Eric Moore <Eric.Moore@lsi.com>
      Cc: Darrick J. Wong <djwong@us.ibm.com>
      Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
      5f49f631
    • E
      [SCSI] mpt2sas: fix driver version inconsistency · 2b69a8a2
      Eric Moore 提交于
      In Commit
      
      commit 3b8b5c9b
      Author: Eric Moore <eric.moore@lsi.com>
      Date:   Tue Apr 21 15:44:27 2009 -0600
      
          [SCSI] mpt2sas : bump driver version to 01.100.02.00
       
      The MPT2SAS_MAJOR_VERSION didn't get bumped from 00 to 01 so
      applications will see it incorrectly as 00.100.02.00 driver instead of
      01.100.02.00.  Fix by making MPT2SAS_MAJOR_VERSION match the major
      number in MPT2SAS_DRIVER_VERSION
      Signed-off-by: NEric Moore <eric.moore@lsi.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
      2b69a8a2