diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2007-07-26 13:46:46 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-07-27 09:11:45 -0400 |
commit | 7974392c0b0d4e7a2a17ca3597d51a29b9841aa5 (patch) | |
tree | 9e7c183a002147b96ff10d11e077a32c34b012b7 | |
parent | 464bb99ea448dc2f017be9150a8be9ab1f021979 (diff) |
[SCSI] iscsi_tcp, ib_iser Enable module refcounting for iscsi host template
This prevents the iscsi modules from being unloaded while
there are active mounts from an iscsi target.
Signed-off-by: Olaf Kirch <olaf.kirch@oracle.com>
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r-- | drivers/infiniband/ulp/iser/iscsi_iser.c | 1 | ||||
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.c b/drivers/infiniband/ulp/iser/iscsi_iser.c index 5db314380271..bad8dacafd10 100644 --- a/drivers/infiniband/ulp/iser/iscsi_iser.c +++ b/drivers/infiniband/ulp/iser/iscsi_iser.c | |||
@@ -548,6 +548,7 @@ iscsi_iser_ep_disconnect(__u64 ep_handle) | |||
548 | } | 548 | } |
549 | 549 | ||
550 | static struct scsi_host_template iscsi_iser_sht = { | 550 | static struct scsi_host_template iscsi_iser_sht = { |
551 | .module = THIS_MODULE, | ||
551 | .name = "iSCSI Initiator over iSER, v." DRV_VER, | 552 | .name = "iSCSI Initiator over iSER, v." DRV_VER, |
552 | .queuecommand = iscsi_queuecommand, | 553 | .queuecommand = iscsi_queuecommand, |
553 | .can_queue = ISCSI_DEF_XMIT_CMDS_MAX - 1, | 554 | .can_queue = ISCSI_DEF_XMIT_CMDS_MAX - 1, |
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 7829ab1e2fb4..93034b43effc 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -2221,6 +2221,7 @@ static int iscsi_tcp_slave_configure(struct scsi_device *sdev) | |||
2221 | } | 2221 | } |
2222 | 2222 | ||
2223 | static struct scsi_host_template iscsi_sht = { | 2223 | static struct scsi_host_template iscsi_sht = { |
2224 | .module = THIS_MODULE, | ||
2224 | .name = "iSCSI Initiator over TCP/IP", | 2225 | .name = "iSCSI Initiator over TCP/IP", |
2225 | .queuecommand = iscsi_queuecommand, | 2226 | .queuecommand = iscsi_queuecommand, |
2226 | .change_queue_depth = iscsi_change_queue_depth, | 2227 | .change_queue_depth = iscsi_change_queue_depth, |