Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[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>

authored by

Mike Christie and committed by
James Bottomley
7974392c 464bb99e

+2
+1
drivers/infiniband/ulp/iser/iscsi_iser.c
··· 548 548 } 549 549 550 550 static struct scsi_host_template iscsi_iser_sht = { 551 + .module = THIS_MODULE, 551 552 .name = "iSCSI Initiator over iSER, v." DRV_VER, 552 553 .queuecommand = iscsi_queuecommand, 553 554 .can_queue = ISCSI_DEF_XMIT_CMDS_MAX - 1,
+1
drivers/scsi/iscsi_tcp.c
··· 2221 2221 } 2222 2222 2223 2223 static struct scsi_host_template iscsi_sht = { 2224 + .module = THIS_MODULE, 2224 2225 .name = "iSCSI Initiator over TCP/IP", 2225 2226 .queuecommand = iscsi_queuecommand, 2226 2227 .change_queue_depth = iscsi_change_queue_depth,