1. 06 1月, 2006 3 次提交
  2. 16 12月, 2005 2 次提交
    • J
      Fix up SCSI mismerge · 7b16318d
      James Bottomley 提交于
      I forgot to do a git-update-cache on the merged files ...
      7b16318d
    • M
      [SCSI] seperate max_sectors from max_hw_sectors · defd94b7
      Mike Christie 提交于
      - export __blk_put_request and blk_execute_rq_nowait
      needed for async REQ_BLOCK_PC requests
      - seperate max_hw_sectors and max_sectors for block/scsi_ioctl.c and
      SG_IO bio.c helpers per Jens's last comments. Since block/scsi_ioctl.c SG_IO was
      already testing against max_sectors and SCSI-ml was setting max_sectors and
      max_hw_sectors to the same value this does not change any scsi SG_IO behavior. It only
      prepares ll_rw_blk.c, scsi_ioctl.c and bio.c for when SCSI-ml begins to set
      a valid max_hw_sectors for all LLDs. Today if a LLD does not set it
      SCSI-ml sets it to a safe default and some LLDs set it to a artificial low
      value to overcome memory and feedback issues.
      
      Note: Since we now cap max_sectors to BLK_DEF_MAX_SECTORS, which is 1024,
      drivers that used to call blk_queue_max_sectors with a large value of
      max_sectors will now see the fs requests capped to BLK_DEF_MAX_SECTORS.
      Signed-off-by: NMike Christie <michaelc@cs.wisc.edu>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      defd94b7
  3. 15 12月, 2005 4 次提交
  4. 14 12月, 2005 2 次提交
  5. 13 12月, 2005 1 次提交
    • L
      Revert revert of "[SCSI] fix usb storage oops" · 49d7bc64
      Linus Torvalds 提交于
      This reverts commit 1b0997f5, which in
      turn reverted 34ea80ec (which is thus
      re-instated).
      
      Quoth James Bottomley:
      
        "All it's doing is deferring the device_put() from the
         scsi_put_command() to after the scsi_run_queue(), which doesn't fix
         the sleep while atomic problem of the device release method.  In both
         cases we still get the semaphore in atomic context problem which is
         caused by scsi_reap_target() doing a device_del(), which I assumed
         (wrongly) was valid from atomic context."
      
      who also promised to fix scsi_reap_target().
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      49d7bc64
  6. 10 12月, 2005 1 次提交
  7. 03 12月, 2005 1 次提交
  8. 09 11月, 2005 1 次提交
    • G
      [SCSI] fix usb storage oops · 34ea80ec
      goggin, edward 提交于
      The problem is that scsi_run_queue is called from scsi_next_command()
      after doing a scsi_put_command.  If the command was the only thing
      holding the reference on the scsi_device then the resulting device put
      will tear down the block queue.  Fix this by taking a reference to the
      device and holding it around scsi_run_queue()
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      34ea80ec
  9. 07 11月, 2005 1 次提交
  10. 29 10月, 2005 2 次提交
  11. 28 10月, 2005 1 次提交
  12. 17 10月, 2005 1 次提交
  13. 19 9月, 2005 1 次提交
  14. 18 9月, 2005 1 次提交
  15. 15 9月, 2005 2 次提交
    • J
      [SCSI] fix sym scsi boot hang · 59897dad
      James Bottomley 提交于
      On Wed, 2005-09-14 at 18:06 +1000, Anton Blanchard wrote:
      > And in particular it looks like the scsi_unprep_request in
      > scsi_queue_insert is causing it. The following patch fixes the boot
      > problems on the vscsi machine:
      
      OK, my fault.  Your fix is almost correct .. I was going to do this
      eventually, honest, because there's no need to unprep and reprep a
      command that comes in through scsi_queue_insert().
      
      However, I decided to leave it in to exercise the scsi_unprep_request()
      path just to make sure it was working.  What's happening, I think, is
      that we also use this path for retries.  Since we kill and reget the
      command each time, the retries decrement is never seen, so we're
      retrying forever.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      59897dad
    • T
      [SCSI] scsi: sd, sr, st, and scsi_lib all fail to copy cmd_len to new cmd · 186d330e
      Timothy Thelin 提交于
      This fixes an issue in scsi command initialization from a request
      where sd, sr, st, and scsi_lib all fail to copy the request's
      cmd_len to the scsi command's cmd_len field.
      Signed-off-by: NTimothy Thelin <timothy.thelin@wdc.com>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      186d330e
  16. 11 9月, 2005 1 次提交
  17. 10 9月, 2005 1 次提交
  18. 09 9月, 2005 2 次提交
    • J
      [SCSI] SCSI core: fix leakage of scsi_cmnd's · e91442b6
      James Bottomley 提交于
      From: 	Alan Stern <stern@rowland.harvard.edu>
      
      This patch (as559b) adds a new routine, scsi_unprep_request, which
      gets called every place a request is requeued.  (That includes
      scsi_queue_insert as well as scsi_requeue_command.)  It also changes
      scsi_kill_requests to make it call __scsi_done with result equal to
      DID_NO_CONNECT << 16.  (I'm not sure if it's necessary to call
      scsi_init_cmd_errh here; maybe you can check on that.)  Finally, the
      patch changes the return value from scsi_end_request, to avoid
      returning a stale pointer in the case where the request was requeued.
      Fortunately the return value is used in only place, and the change
      actually simplified it.
      Signed-off-by: NAlan Stern <stern@rowland.harvard.edu>
      
      Rejections fixed up and
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      e91442b6
    • N
      [SCSI] fix possible deadlock in scsi_lib.c · 286f3e13
      Neil Brown 提交于
        If a filesystem, while writing out data, decides that it is good
      to issue a cache flush on a SCSI drive (or other 'sd' device), it will
      call blkdev_issue_flush which calls ->issue_flush_fn which is
      scsi_issue_flush_fn.
      This calls sd_issue_flush which calls sd_sync_cache, which calls
      scsi_execute_request.
      This will (as sshdr != NULL) call
          kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL)
      
      If memory is tight, the presence of GFP_KERNEL may cause write
      requests to be sent to some filesystem to free up memory, however if
      that filesystem is waiting for the issue_flush_fn to complete, you
      could get a deadlock.
      
      I wonder if it might be more appropriate to use GFP_NOIO as in the
      following patch.
      
      I wonder if it might be even more appropriate to cope better with a
      kmalloc failure, especially as in this use, sd_sync_cache only will
      use the sense information to print out a more informative error
      message.
      Signed-off-by: NNeil Brown <neilb@suse.de>
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      286f3e13
  19. 07 9月, 2005 1 次提交
    • J
      [SCSI] quieten messages on scsi_execute commands · 3173d8c3
      James Bottomley 提交于
      scsi_io_completion() can be a bit noisy about certain conditions.
      Previously this wasn't a problem for internally generated commands,
      since they never hit it.  However, since we do all SCSI commands via
      bios, now they do.  user CD testers like magicdev are now getting not
      ready messages every time they touch the CD to see if there's anything
      in it.
      
      Fix this by making all scsi_execute commands REQ_QUIET and making
      scsi_finish_io() not say anything for REQ_QUIET.
      Signed-off-by: NJames Bottomley <James.Bottomley@SteelEye.com>
      3173d8c3
  20. 29 8月, 2005 5 次提交
  21. 28 8月, 2005 3 次提交
  22. 31 7月, 2005 1 次提交
  23. 14 7月, 2005 1 次提交
  24. 29 6月, 2005 1 次提交