]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1e81f6d71547ae9765d29976265eec04e0f3a275
treed9debe6032b3705dfbfb32e518c953de85dc3977
parent844399b8b646251b44818456c882cd28159c2e23
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