]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libiscsi, iscsi_tcp, iser: add session cmds array accessor
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 21 May 2008 20:54:04 +0000 (15:54 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sat, 12 Jul 2008 13:22:18 +0000 (08:22 -0500)
commit600b035735d20ce206f1f243c6a7776d1f9d28ac
tree08297980d1b6dab820d22c12c7fe1c54602f2486
parent38e46ede89ec7fe14e682ffd10af2f7deb0ba017
[SCSI] libiscsi, iscsi_tcp, iser: add session cmds array accessor

Currently to get a ctask from the session cmd array, you have to
know to use the itt modifier. To make this easier on LLDs and
so in the future we can easilly kill the session array and use
the host shared map instead, this patch adds a nice wrapper
to strip the itt into a session->cmds index and return a ctask.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/infiniband/ulp/iser/iser_initiator.c
drivers/scsi/iscsi_tcp.c
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h