1. 20 11月, 2014 4 次提交
  2. 12 11月, 2014 1 次提交
    • C
      scsi: don't set tagging state from scsi_adjust_queue_depth · c8b09f6f
      Christoph Hellwig 提交于
      Remove the tagged argument from scsi_adjust_queue_depth, and just let it
      handle the queue depth.  For most drivers those two are fairly separate,
      given that most modern drivers don't care about the SCSI "tagged" status
      of a command at all, and many old drivers allow queuing of multiple
      untagged commands in the driver.
      
      Instead we start out with the ->simple_tags flag set before calling
      ->slave_configure, which is how all drivers actually looking at
      ->simple_tags except for one worke anyway.  The one other case looks
      broken, but I've kept the behavior as-is for now.
      
      Except for that we only change ->simple_tags from the ->change_queue_type,
      and when rejecting a tag message in a single driver, so keeping this
      churn out of scsi_adjust_queue_depth is a clear win.
      
      Now that the usage of scsi_adjust_queue_depth is more obvious we can
      also remove all the trivial instances in ->slave_alloc or ->slave_configure
      that just set it to the cmd_per_lun default.
      Signed-off-by: NChristoph Hellwig <hch@lst.de>
      Reviewed-by: NMike Christie <michaelc@cs.wisc.edu>
      Reviewed-by: NHannes Reinecke <hare@suse.de>
      Reviewed-by: NMartin K. Petersen <martin.petersen@oracle.com>
      c8b09f6f
  3. 25 9月, 2014 1 次提交
  4. 17 9月, 2014 3 次提交
  5. 09 8月, 2014 1 次提交
  6. 26 7月, 2014 6 次提交
  7. 18 7月, 2014 1 次提交
  8. 02 6月, 2014 17 次提交
  9. 28 5月, 2014 1 次提交
  10. 20 5月, 2014 4 次提交
  11. 21 4月, 2014 1 次提交
    • S
      [SCSI] hpsa: fix NULL dereference in hpsa_put_ctlr_into_performant_mode() · 67c99a72
      scameron@beardog.cce.hp.com 提交于
      Initialize local variable trans_support before it is used rather
      than after.  It is supposed to contain the value of a register on the
      controller containing bits that describe which transport modes the
      controller supports (e.g. "performant", "ioaccel1",  "ioaccel2").  A
      NULL pointer dereference will almost certainly occur if trans_support
      is not initialized at the right point.  If for example the uninitialized
      trans_support value does not have the bit set for ioaccel2 support when it
      should be, then ioaccel2_alloc_cmds_and_bft() will not get called as it
      should be and the h->ioaccel2_blockFetchTable array will remain NULL
      instead of being allocated.  Too late, trans_support finally gets
      initialized with the correct value with ioaccel2 mode bit set,
      which later causes calc_bucket_map() to be called to fill in
      h->ioaccel2_blockFetchTable[].  However h->ioaccel2_blockFetchTable
      is NULL because it didn't get allocated because earlier trans_support
      wasn't initialized at the right point.
      
      Fixes: e1f7de0cSigned-off-by: NStephen M. Cameron <scameron@beardog.cce.hp.com>
      Reported-by: NBaoquan He <bhe@redhat.com>
      Tested-by: NBaoquan He <bhe@redhat.com>
      Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
      67c99a72