1. 05 8月, 2010 2 次提交
    • B
      IB/srp: Make receive buffer handling more robust · c996bb47
      Bart Van Assche 提交于
      The current strategy in ib_srp for posting receive buffers is:
      
       * Post one buffer after channel establishment.
       * Post one buffer before sending an SRP_CMD or SRP_TSK_MGMT to the target.
      
      As a result, only the first non-SRP_RSP information unit from the
      target will be processed.  If that first information unit is an
      SRP_T_LOGOUT, it will be processed.  On the other hand, if the
      initiator receives an SRP_CRED_REQ or SRP_AER_REQ before it receives a
      SRP_T_LOGOUT, the SRP_T_LOGOUT won't be processed.
      
      We can fix this inconsistency by changing the strategy for posting
      receive buffers to:
      
       * Post all receive buffers after channel establishment.
       * After a receive buffer has been consumed and processed, post it again.
      
      A side effect is that the ib_post_recv() call is moved out of the SCSI
      command processing path.  Since __srp_post_recv() is not called
      directly any more, get rid of it and move the code directly into
      srp_post_recv().  Also, move srp_post_recv() up in the file to avoid a
      forward declaration.
      Signed-off-by: NBart Van Assche <bart.vanassche@gmail.com>
      Acked-by: NDavid Dillow <dave@thedillows.org>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      c996bb47
    • B
      IB/srp: Use print_hex_dump() · 7a700811
      Bart Van Assche 提交于
      Replace an open-coded dump of the receive buffer with a call to
      print_hex_dump().
      Signed-off-by: NBart Van Assche <bart.vanassche@gmail.com>
      Signed-off-by: NRoland Dreier <rolandd@cisco.com>
      7a700811
  2. 12 7月, 2010 2 次提交
  3. 10 7月, 2010 2 次提交
  4. 09 7月, 2010 8 次提交
  5. 08 7月, 2010 22 次提交
  6. 07 7月, 2010 4 次提交