diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-09-01 00:09:25 +0200 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-09-02 20:37:07 +0200 |
commit | 60ecebf5a10e42f5e2d6e07eb9e24bdee8500b81 (patch) | |
tree | 79b27fd89fe175daa4e4cd6feda8a6548c6d9bf1 /drivers/scsi/iscsi_tcp.c | |
parent | [SCSI] libiscsi, iscsi_tcp, iscsi_iser: check that burst lengths are valid. (diff) | |
download | linux-60ecebf5a10e42f5e2d6e07eb9e24bdee8500b81.tar.xz linux-60ecebf5a10e42f5e2d6e07eb9e24bdee8500b81.zip |
[SCSI] add refcouting around ctask usage in main IO patch
It is possible that a ctask could be completing and getting
cleaned up at the same time, we are finishing up the last
data transfer. This could then result in the data transfer
code using stale or invalid values. This patch adds a refcount
to the ctask. When the count goes to zero then we know the
transmit thread and recv thread or softirq are not touching
it and we can safely release it.
The eh should not need to grab a reference because it only cleans
up a task if it has both the xmit mutex and recv lock (or recv
side suspended).
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.c')
0 files changed, 0 insertions, 0 deletions