]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
SCSI: esp: tidy up target reference counting
authorJames Bottomley <James.Bottomley@HansenPartnership.com>
Thu, 3 Jul 2008 02:45:44 +0000 (02:45 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 24 Jul 2008 16:14:05 +0000 (09:14 -0700)
commita342eed928f29065bd69fe7bb000a3fdbc25ef88
tree77bdce65831c29f24c00ec6eed5480dbf4407cb1
parent13ac0ea3cf0b540c409d5a5ff1508f2d630d475d
SCSI: esp: tidy up target reference counting

commit ec5e69f6d3f4350681d6f7eaae515cf014be9276 upstream

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>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/esp_scsi.c
drivers/scsi/esp_scsi.h