]> err.no Git - linux-2.6/commitdiff
[SCSI] iscsi_tcp, ib_iser Enable module refcounting for iscsi host template
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 26 Jul 2007 17:46:46 +0000 (12:46 -0500)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 27 Jul 2007 13:11:45 +0000 (09:11 -0400)
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>
drivers/infiniband/ulp/iser/iscsi_iser.c
drivers/scsi/iscsi_tcp.c

index 5db31438027109588ea50018a4875bfd64ae9521..bad8dacafd108e5c2c9fd0f4826e2a59630337e9 100644 (file)
@@ -548,6 +548,7 @@ iscsi_iser_ep_disconnect(__u64 ep_handle)
 }
 
 static struct scsi_host_template iscsi_iser_sht = {
+       .module                 = THIS_MODULE,
        .name                   = "iSCSI Initiator over iSER, v." DRV_VER,
        .queuecommand           = iscsi_queuecommand,
        .can_queue              = ISCSI_DEF_XMIT_CMDS_MAX - 1,
index 7829ab1e2fb46d5bf350c9c6d54d0ff9dec4a01a..93034b43effce074d1543c86892ec97d865fa1c4 100644 (file)
@@ -2221,6 +2221,7 @@ static int iscsi_tcp_slave_configure(struct scsi_device *sdev)
 }
 
 static struct scsi_host_template iscsi_sht = {
+       .module                 = THIS_MODULE,
        .name                   = "iSCSI Initiator over TCP/IP",
        .queuecommand           = iscsi_queuecommand,
        .change_queue_depth     = iscsi_change_queue_depth,