cxgb3i: use kref to track ddp usage
authorKaren Xie <kxie@chelsio.com>
Mon, 15 Jun 2009 18:15:16 +0000 (11:15 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 21 Jun 2009 15:52:39 +0000 (10:52 -0500)
commit295ab1b54393aec064533fbc5b483844736ccbf0
treed9debe6032b3705dfbfb32e518c953de85dc3977
parentd11b6916961d6ec7d7215332cbbe9feec086721d
cxgb3i: use kref to track ddp usage

The iscsi ddp functionality could be used by multiple iscsi entities,
add a refcnt to keep track of it, so we would not release it pre-maturely.

Signed-off-by: Karen Xie <kxie@chelsio.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/cxgb3i/cxgb3i_ddp.c
drivers/scsi/cxgb3i/cxgb3i_ddp.h