Changes:
authorbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 14 Feb 2010 11:36:34 +0000 (11:36 +0000)
committerbvassche <bvassche@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Sun, 14 Feb 2010 11:36:34 +0000 (11:36 +0000)
commit1c529ab21ad0afbe6e3b4bab5285ca12077553d7
tree0e2ecaffbd80eb93ab724903d0522da75476a259
parenta736974107f5d9bbd4cd04bcf59c2cfae1a0a3ff
Changes:
- Fixed race condition between SCST session registration and IB channel event
  handler in srpt_add_one(): at least in theory it was possible that
  sdev->scst_tgt was accessed before being initialized properly.
- A kernel WARN_ON() is no longer triggered when a DREQ has been received after
  SCST session deregistration started.
- Made sure that srpt_unmap_sg_to_ib_sge() does not call ib_dma_unmap_sg()
  twice.
- Moved srpt_unmap_sg_to_ib_sge() call out of srpt_reset_ioctx() and
  srpt_abort_scst_cmd() into the callers of these functions.
- Renamed some of the SRPT command states.

git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@1505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
srpt/src/ib_srpt.c
srpt/src/ib_srpt.h