From: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
To: "Linux-iSCSI.org Target Dev" <linux-iscsi-target-dev@googlegroups.com>
Cc: LKML <linux-kernel@vger.kernel.org>,
linux-scsi <linux-scsi@vger.kernel.org>
Subject: [PATCH] [Target_Core_Mod/MIBS]: Add missing SCSI MIBs initialization call during module_init()
Date: Mon, 12 Jan 2009 15:03:08 -0800 [thread overview]
Message-ID: <1231801388.4560.1169.camel@haakon2.linux-iscsi.org> (raw)
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
reply other threads:[~2009-01-12 23:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1231801388.4560.1169.camel@haakon2.linux-iscsi.org \
--to=nab@linux-iscsi.org \
--cc=linux-iscsi-target-dev@googlegroups.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®