Commit Graph

3041 Commits

Author SHA1 Message Date
Bart Van Assche
1d17e6386c fcst: Follow-up for r4106 - make fcst build again on kernel 3.0 and before
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-02-02 19:24:05 +00:00
Bart Van Assche
b6e5aa684c Source: http://marc.info/?l=linux-scsi&m=132812597504750
From: "Paul E. McKenney" <paul.mckenney@linaro.org>

The call_rcu() in ft_tport_delete() invokes ft_tport_rcu_free(),
which just does a kfree().  So convert the call_rcu() to kfree_rcu(),
allowing ft_tport_rcu_free() to be eliminated.

Signed-off-by: Paul E. McKenney <paul.mckenney@linaro.org>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Cc: "Nicholas A. Bellinger" <nab@linux-iscsi.org>
Cc: Jiri Kosina <jkosina@suse.cz>
Cc: Jesper Juhl <jj@chaosbits.net>
Cc: linux-scsi@vger.kernel.org
Cc: target-devel@vger.kernel.org
---
 drivers/target/tcm_fc/tfc_sess.c |   12 +-----------
 1 files changed, 1 insertions(+), 11 deletions(-)

diff --git a/drivers/target/tcm_fc/tfc_sess.c b/drivers/target/tcm_fc/tfc_sess.c
index 4c0507c..eff512b 100644
--- a/drivers/target/tcm_fc/tfc_sess.c
+++ b/drivers/target/tcm_fc/tfc_sess.c
@@ -86,16 +86,6 @@ static struct ft_tport *ft_tport_create(struct fc_lport *lport)
 }
 
 /*
- * Free tport via RCU.
- */
-static void ft_tport_rcu_free(struct rcu_head *rcu)
-{
-	struct ft_tport *tport = container_of(rcu, struct ft_tport, rcu);
-
-	kfree(tport);
-}
-
-/*
  * Delete a target local port.
  * Caller holds ft_lport_lock.
  */
@@ -114,7 +104,7 @@ static void ft_tport_delete(struct ft_tport *tport)
 		tpg->tport = NULL;
 		tport->tpg = NULL;
 	}
-	call_rcu(&tport->rcu, ft_tport_rcu_free);
+	kfree_rcu(tport, rcu);
 }
 
 /*
-- 
1.7.8


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-02-02 19:11:33 +00:00
Vladislav Bolkhovitin
3320da76c5 Version updated to 2.2.0
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-26 05:48:19 +00:00
Vladislav Bolkhovitin
a8b47304a1 Update for 2.2.0 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-26 05:43:48 +00:00
Vladislav Bolkhovitin
167a7bafa5 Fix race for sess between q2t_del_sess_work_fn() and q2t_clear_tgt_db() as well as other similar places
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-26 05:00:28 +00:00
Vladislav Bolkhovitin
40ff4978ab IRQ handlers can be called without IRQs disabled and IRQF_DISABLED
doesn't work with IRQF_SHARED on modern kernels.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-26 04:59:39 +00:00
Vladislav Bolkhovitin
05f29dd542 Fix compilation for SuSe 2.6.32.46 kernel
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-26 04:58:36 +00:00
Bart Van Assche
c3fb0dd2b9 nightly build: Include scst_proc.c only if necessary
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-23 15:15:52 +00:00
Bart Van Assche
9de7980a91 nightly build: Revert r4088 - scst_proc.c is needed in order to build with against an older kernel version
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-23 09:42:40 +00:00
Bart Van Assche
90f845c9d6 nightly build: Ignore procfs code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-22 12:56:17 +00:00
Bart Van Assche
b8a38346eb ib_srpt: Update ChangeLog
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4086 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-21 18:03:30 +00:00
Bart Van Assche
6fbdc157d6 ib_srpt: Revert r3920 because the performance improvement is minor and with certain initiators it can cause performance to fluctuate
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-21 17:47:48 +00:00
Bart Van Assche
a8f25c1cc2 ib_srpt: Remove an obsolete section from the README file and add a FAQ section
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-21 16:58:53 +00:00
Vladislav Bolkhovitin
0bab130bfe Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-20 20:10:00 +00:00
Vladislav Bolkhovitin
8e5eafb7c3 Forgotten tcp_zero_copy.c added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-20 03:13:11 +00:00
Bart Van Assche
7a8bf68a3d nightly build: Add kernel version 3.2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4079 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-19 07:59:18 +00:00
Bart Van Assche
10bcf70cc6 Add files necessary for 3.2 nightly build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-19 07:58:37 +00:00
Vladislav Bolkhovitin
9da517bae1 Update for kernel 3.2. Netlink part in iSCSI-SCST done by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-18 23:48:02 +00:00
Bart Van Assche
4904b9d0e3 ib_srpt: Make the srp_max_rdma_size module parameter non-executable.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-18 18:53:56 +00:00
Bart Van Assche
b78174e204 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4075 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-16 10:27:13 +00:00
Bart Van Assche
cb5cc4592c scstadmin: Document the ISCSID_OPTIONS variable in the /etc/default/scst man page. That variable was added in r4066.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4073 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-16 10:23:06 +00:00
Vladislav Bolkhovitin
f9126313e8 Better don't decode vendor opcode 0x24 for block devices, because the
current decoding is incorrect anyway.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4072 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-15 00:09:03 +00:00
Bart Van Assche
6ee7d621d6 ib_srpt: Clear the cm_id->context pointer before freeing a channel
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4071 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-13 19:49:44 +00:00
Bart Van Assche
e0d291a9f7 scripts/run-regression-tests: Check sparse exit code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4070 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-13 14:22:55 +00:00
Bart Van Assche
704410f264 ib_srpt: Builds again on kernel 3.1 and before / avoid uninitialized fields in srq_attr in case that structure is extended once more in the future
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4069 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-13 14:05:23 +00:00
Bart Van Assche
02be9382b5 ib_srpt: Initialize ib_srq_init_attr.srq_type such that ib_qip doesn't return -ENOSYS when trying to create an SRQ
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4068 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-13 13:50:23 +00:00
Bart Van Assche
ddbe1c0770 ib_srpt: Rework r4063
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4067 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-12 19:17:50 +00:00
Bart Van Assche
372373cf5f scstadmin: Allow iscsi-scstd command-line options to be specified in /etc/default/scst
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4066 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-12 17:36:49 +00:00
Bart Van Assche
817f0a37fb fcst: Add missing #include <linux/module.h>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4065 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-12 08:51:57 +00:00
Vladislav Bolkhovitin
b31865ea69 Update of put_page_callback-2.6.32-220.patch from Patrick Zwahlen <paz@navixia.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4064 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-12 03:22:09 +00:00
Bart Van Assche
4c9f5a4b14 ib_srpt: Fix (unlikely) race between wake_up_process() and kthread_stop()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-11 19:17:23 +00:00
Bart Van Assche
dae7bfc068 ib_srpt: Add a comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4062 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-11 19:16:18 +00:00
Bart Van Assche
edcddde130 ib_srpt: Simplify the code for port_num range checking in srpt_event_handler()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4061 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-11 19:15:43 +00:00
Vladislav Bolkhovitin
5236ccfccf Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-11 03:06:06 +00:00
Bart Van Assche
5cedc7a926 ib_srpt: Make port number range checking more strict
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4059 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-10 12:47:37 +00:00
Bart Van Assche
68ab66d75a ib_srpt: Introduce ARRAY_SIZE() in srpt_add_one()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4058 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-10 12:30:40 +00:00
Vladislav Bolkhovitin
f6ba6aaf43 Patch from Richard Sharpe <realrichardsharpe@gmail.com> implementing put_page_callback patch for CentOS 6.2/RHEL 6.2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4057 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-10 03:02:24 +00:00
Bart Van Assche
6c205d7ff0 Nightly build: make scripts work again for base level kernels
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4055 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 10:52:28 +00:00
Bart Van Assche
1088696429 Kernel version updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4054 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 09:43:17 +00:00
Bart Van Assche
5f70fd80b2 Switch back to the previous approach of base tar ball + patch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4053 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 09:40:58 +00:00
Bart Van Assche
b3abcb8f60 ib_srpt: Test procedure update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4052 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 09:34:09 +00:00
Bart Van Assche
597b7244ff Rename scripts/kernel-version into scripts/kernel-functions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4051 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 09:13:48 +00:00
Bart Van Assche
f2127c015f Move more shared code into scripts/kernel-version
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4050 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-07 09:06:24 +00:00
Bart Van Assche
3f876d0ce6 Update because of kernel.org reorganization
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4049 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-06 18:57:13 +00:00
Bart Van Assche
a7d2282fd0 Make "/etc/init.d/scst status" exit with code 3 instead of 0 if SCST has not been started, as required by the LSB. Fixes a bug introduced in r3805.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4047 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-02 12:08:33 +00:00
Bart Van Assche
2e13c64ff6 ib_srpt: Update test procedure
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4045 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-01 19:26:44 +00:00
Bart Van Assche
f55b8d2fd0 ib_srpt: Avoid using __WARN()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-29 14:05:02 +00:00
Bart Van Assche
a8ddbf4545 ib_srpt: Correct version number
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4040 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-29 13:32:57 +00:00
Bart Van Assche
a6c36f7795 ib_srpt: Update ChangeLog
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-29 13:32:05 +00:00
Bart Van Assche
60ea5d7728 SVN_TAGS: add even more information
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4038 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-29 13:20:40 +00:00