1. 25 4月, 2013 1 次提交
  2. 24 2月, 2013 1 次提交
  3. 14 2月, 2013 2 次提交
    • N
      target/iblock: Use backend REQ_FLUSH hint for WriteCacheEnabled status · d0c8b259
      Nicholas Bellinger 提交于
      This patch allows IBLOCK to check block hints in request_queue->flush_flags
      when reporting current backend device WriteCacheEnabled status to a remote
      SCSI initiator port.
      
      This is done via a se_subsystem_api->get_write_cache() call instead of a
      backend se_device creation time flag, as we expect REQ_FLUSH bits to possibly
      change from an underlying blk_queue_flush() by the SCSI disk driver, or
      internal raw struct block_device driver usage.
      
      Also go ahead and update iblock_execute_rw() bio I/O path code to use
      REQ_FLUSH + REQ_FUA hints when determining WRITE_FUA usage, and make SPC
      emulation code use a spc_check_dev_wce() helper to handle both types of
      cases for virtual backend subsystem drivers.
      
      (asias: Drop unnecessary comparsion operators)
      Reported-by: Nmajianpeng <majianpeng@gmail.com>
      Cc: majianpeng <majianpeng@gmail.com>
      Cc: Christoph Hellwig <hch@infradead.org>
      Cc: Jens Axboe <axboe@kernel.dk>
      Cc: James Bottomley <JBottomley@Parallels.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      d0c8b259
    • H
      target: Export SPC inquiry emulation · 0dfa1c5d
      Hannes Reinecke 提交于
      Some target drivers might need to access the inquiry data
      directly, without sending out the actual command.
      So export these functions.
      Signed-off-by: NHannes Reinecke <hare@suse.de>
      Cc: Nicholas Bellinger <nab@risingtidesystems.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      0dfa1c5d
  4. 28 11月, 2012 1 次提交
    • N
      target: Make spc_get_write_same_sectors return sector_t · ffe00675
      Nicholas Bellinger 提交于
      We already expect TFO->get_blocks() to return sector_t for zero value case
      when doing WRITE_SAME to the end of the backend device, so go ahead and return
      sector_t from spc_get_write_same_sectors() to handle this case properly.
      
      Also, update the single iblock_execute_write_same() caller of this code.
      
      Cc: Christoph Hellwig <hch@lst.de>
      Cc: Martin K. Petersen <martin.petersen@oracle.com>
      Signed-off-by: NNicholas Bellinger <nab@linux-iscsi.org>
      ffe00675
  5. 16 11月, 2012 1 次提交
  6. 07 11月, 2012 6 次提交
  7. 18 9月, 2012 1 次提交
  8. 06 9月, 2012 1 次提交
  9. 17 7月, 2012 6 次提交
  10. 07 5月, 2012 3 次提交
  11. 16 3月, 2012 1 次提交
  12. 18 1月, 2012 1 次提交
  13. 14 12月, 2011 1 次提交