]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] esp: tidy up target reference counting
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 23 Jun 2008 19:52:09 +0000 (14:52 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 25 Jun 2008 17:36:13 +0000 (12:36 -0500)
commita6134f53a90b2102364c61a6b8482dd9fabd87ca
tree32f175799563d803a17c71624d8eb98d317eee22
parent59836093f09db2006dd31616ec7c6ce50654e60c
[SCSI] esp: tidy up target reference counting

The esp driver currently does hand rolled reference counting of its
target.  It's much easier to do what it needs to do if it's plugged into
the mid-layer callbacks (target_alloc and target_destroy) which were
designed for this case, so do it this way and get rid of the internal
target reference count.

Acked-by: David S. Miller <davem@davemloft.net>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/esp_scsi.c
drivers/scsi/esp_scsi.h