1. 16 5月, 2012 1 次提交
  2. 12 5月, 2012 2 次提交
  3. 10 5月, 2012 3 次提交
    • N
      target: Remove max_sectors device attribute for modern se_task less code · 11e764bd
      Nicholas Bellinger 提交于
      This patch removes the original usage of dev_attr->max_sectors in favor of
      dev_attr->hw_max_sectors that is now being enforced by target core from
      within transport_generic_cmd_sequencer() for SCF_SCSI_DATA_SG_IO_CDB ops.
      
      After the recent se_task removal patches from hch, this value for IBLOCK
      backends being set via configfs by userspace from an saved max_sectors
      value that is turning out to be problematic, so it makes sense to go ahead
      and remove this now legacy attribute all-together.
      
      This patch also continues to make se_dev_set_default_attribs() do
      (sectors / block_size) alignment for what actually get used by
      target_core_mod to be safe here, following the same alignment currently
      used by fabric_max_sectors.
      Reported-by: NAndy Grover <agrover@redhat.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Roland Dreier <roland@purestorage.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      11e764bd
    • D
      target: lock => unlock typo in transport_lun_wait_for_tasks · 23019170
      Dan Carpenter 提交于
      target_stop_cmd() returns with the lock held and IRQs disabled.  The
      intent was to unlock here.  This bug was originally added with:
      
      commit cf572a96
      Author: Christoph Hellwig <hch@infradead.org>
      Date:   Tue Apr 24 00:25:05 2012 -0400
      
          target: move the state and execute lists to the command
      Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      23019170
    • N
      target: Enforce hw_max_sectors for SCF_SCSI_DATA_SG_IO_CDB · 7b4deef5
      Nicholas Bellinger 提交于
      Instead of depending upon a max_sectors value that may be set via
      configfs based upon original HW queue limitations, go ahead and convert to using
      the hw_max_sectors reported by the backend device in order to determine when
      to reject an I/O's who's sector count exceeds what is supported by the backend
      with a single se_cmd descriptor.
      
      It addresses a potential case where se_dev_attrib.max_sectors for IBLOCK
      backends has already been set via queue_max_sectors() to something small
      like max_sectors=32 (LVM, DRBD may do this), resulting typically sized
      SCF_SCSI_DATA_SG_IO_CDB to be incorrectly rejected with invalid_cdb_field
      in transport_generic_cmd_sequencer().
      Reviewed-by: NChristoph Hellwig <hch@lst.de>
      Cc: Roland Dreier <roland@purestorage.com>
      Cc: Andy Grover <agrover@redhat.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      7b4deef5
  4. 07 5月, 2012 15 次提交
  5. 15 4月, 2012 19 次提交