[PATCH 07/31] scsi: Auto-load scsi_transport_iscsi module when socket opened.

From: Scott James Remnant
Date: Tue Mar 10 2009 - 12:48:40 EST


The scsi_transport_iscsi module is missing the net-pf-16-proto-8 alias
that would cause it to be auto-loaded when a socket of that type is
opened. This patch adds the alias.

Signed-off-by: Scott James Remnant <scott@xxxxxxxxxxxxx>
Signed-off-by: Tim Gardner <tim.gardner@xxxxxxxxxxxxx>
---
drivers/scsi/scsi_transport_iscsi.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/scsi/scsi_transport_iscsi.c b/drivers/scsi/scsi_transport_iscsi.c
index 75c9297..056fdae 100644
--- a/drivers/scsi/scsi_transport_iscsi.c
+++ b/drivers/scsi/scsi_transport_iscsi.c
@@ -22,6 +22,8 @@
*/
#include <linux/module.h>
#include <linux/mutex.h>
+#include <linux/net.h>
+#include <linux/netlink.h>
#include <net/tcp.h>
#include <scsi/scsi.h>
#include <scsi/scsi_host.h>
@@ -2013,3 +2015,4 @@ MODULE_AUTHOR("Mike Christie <michaelc@xxxxxxxxxxx>, "
MODULE_DESCRIPTION("iSCSI Transport Interface");
MODULE_LICENSE("GPL");
MODULE_VERSION(ISCSI_TRANSPORT_VERSION);
+MODULE_ALIAS_NET_PF_PROTO(PF_NETLINK, NETLINK_ISCSI);
--
1.6.0.5

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/