[RFC 08/22] tcm: Add HBA core infrastructure

Previous thread: [RFC 02/22] configfs: Add struct configfs_item_operations->check_link() in configfs_unlink() by Nicholas A. Bellinger on Monday, August 30, 2010 - 2:20 am. (18 messages)

Next thread: [PATCH, RFC] RCU: New scalable, multi-GP and preemptible RCU implementation by Lai Jiangshan on Monday, August 30, 2010 - 2:31 am. (8 messages)
From: Nicholas A. Bellinger
Date: Monday, August 30, 2010 - 2:21 am

From: Nicholas Bellinger <nab@linux-iscsi.org>

This patch adds the core struct se_hba functionality that is used internally by
target_core_mod to group the same subsystem storage objects types until a single
/sys/kernel/config/target/core/$HBA directory.  The HBA code supports boths
physical storage objects (from Linux/SCSI) and virtual storage objects (from Linux/BLOCK,
Linux/VFS, RAMDISK)

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
---
 drivers/target/target_core_hba.c |  211 ++++++++++++++++++++++++++++++++++++++
 drivers/target/target_core_hba.h |   14 +++
 2 files changed, 225 insertions(+), 0 deletions(-)
 create mode 100644 drivers/target/target_core_hba.c
 create mode 100644 drivers/target/target_core_hba.h

diff --git a/drivers/target/target_core_hba.c b/drivers/target/target_core_hba.c
new file mode 100644
index 0000000..d9e286c
--- /dev/null
+++ b/drivers/target/target_core_hba.c
@@ -0,0 +1,211 @@
+/*******************************************************************************
+ * Filename:  target_core_hba.c
+ *
+ * This file copntains the iSCSI HBA Transport related functions.
+ *
+ * Copyright (c) 2003, 2004, 2005 PyX Technologies, Inc.
+ * Copyright (c) 2005, 2006, 2007 SBE, Inc.
+ * Copyright (c) 2007-2010 Rising Tide Systems
+ * Copyright (c) 2008-2010 Linux-iSCSI.org
+ *
+ * Nicholas A. Bellinger <nab@kernel.org>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, ...
Previous thread: [RFC 02/22] configfs: Add struct configfs_item_operations->check_link() in configfs_unlink() by Nicholas A. Bellinger on Monday, August 30, 2010 - 2:20 am. (18 messages)

Next thread: [PATCH, RFC] RCU: New scalable, multi-GP and preemptible RCU implementation by Lai Jiangshan on Monday, August 30, 2010 - 2:31 am. (8 messages)