mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] [Target_Core_Mod/MIBS]: Add missing SCSI MIBs initialization call during module_init()
@ 2009-01-12 23:03 Nicholas A. Bellinger
  0 siblings, 0 replies; only message in thread
From: Nicholas A. Bellinger @ 2009-01-12 23:03 UTC (permalink / raw)
  To: Linux-iSCSI.org Target Dev; +Cc: LKML, linux-scsi

Greetings all,

This patch is made against lio-core-2.6.git/master
and tested on v2.6.28.  The lio-core-2.6.git tree can be found at:

http://git.kernel.org/?p=linux/kernel/git/nab/lio-core-2.6.git;a=summary

Thanks,

--nab

>From 53b6924090a2182433e36cbd106d2f0249e3b8cc Mon Sep 17 00:00:00 2001
From: Nicholas Bellinger <nab@linux-iscsi.org>
Date: Mon, 12 Jan 2009 14:56:56 -0800
Subject: [PATCH] [Target_Core_Mod/MIBS]: Add missing SCSI MIBs initialization call during module_init()

During the v3.0 splitup of SCSI MIBs and iSCSI MIBs into target_core_mibs.c and
iscsi_target_mibs.c respectively, a new initialization function for SCSI MIBs was
added called init_scsi_index_table().  However this function was not added to
target_core_mod's module_init() function: target_core_init_configfs().

This patch adds the missing init_scsi_index_table() before init_se_global()
(which uses SCSI MIB logic) in target_core_init_configfs().

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
 drivers/lio-core/target_core_configfs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/lio-core/target_core_configfs.c b/drivers/lio-core/target_core_configfs.c
index 0fceeab..46a84a7 100644
--- a/drivers/lio-core/target_core_configfs.c
+++ b/drivers/lio-core/target_core_configfs.c
@@ -1023,7 +1023,9 @@ extern int target_core_init_configfs (void)
 	 */
 	INIT_LIST_HEAD(&g_tf_list);
 	mutex_init(&g_tf_lock);
-
+#ifdef SNMP_SUPPORT
+	init_scsi_index_table();
+#endif
 	if ((ret = configfs_register_subsystem(subsys)) < 0) {
 		printk(KERN_ERR "Error %d while registering subsystem %s\n",
 			ret, subsys->su_group.cg_item.ci_namebuf);
-- 
1.5.4.1




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-12 23:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-12 23:03 [PATCH] [Target_Core_Mod/MIBS]: Add missing SCSI MIBs initialization call during module_init() Nicholas A. Bellinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®