Commit Graph

2820 Commits

Author SHA1 Message Date
Bart Van Assche
faeb4e4435 iscsi-scst: Fix code for detecting duplicate connections (merge r4680 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4698 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 13:24:53 +00:00
Bart Van Assche
d3eb1ed610 iscsi-scst: Bring how-to in sync with scstadmin (merge r4302 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4697 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 13:19:29 +00:00
Bart Van Assche
b4608c470a fcst: Avoid "suspicious RCU usage" warnings with lockdep enabled (merge r4378 and r4381 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4696 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 13:16:18 +00:00
Bart Van Assche
958579fd8b Automate release archive generation (merge r4676, r4677 and r4679 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 10:04:11 +00:00
Bart Van Assche
7b0e9f7a51 iscsi-scst: Let "make install" install the man pages (merge r4133 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4694 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:59:11 +00:00
Bart Van Assche
a775e00bf2 scstadmin/Makefile: Use chkconfig on RHEL instead of the LSB scripts (merge r4612 from trunk)
chkconfig is installed by default while /usr/lib/lsb/install_initd and
/usr/lib/lsb/remove_initd are not installed by default.


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4693 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:55:48 +00:00
Bart Van Assche
4ce9fbb893 scstadmin/Makefile: Clean up whitespace usage (merge r4611 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4692 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:54:26 +00:00
Bart Van Assche
973745bcba scstadmin/Makefile, Ubuntu: Use update-rc.d instead of the LSB /usr/lib/lsb/remove_initd - the latter is not installed by default (merge r4609 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:53:18 +00:00
Bart Van Assche
25b37e1640 scstadmin: Add command-line option -no_lip (merge r4474 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4690 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:48:04 +00:00
Bart Van Assche
1dd3cb834d /etc/init.d/scst: Wait up to 30s before giving up trying to unload a kernel module (merge r4608 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:44:06 +00:00
Bart Van Assche
e48b528b79 /etc/init.d/scst: Introduce character classes and change one tab into a space (merge r4685 and r4686 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4688 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:42:29 +00:00
Bart Van Assche
d5fb1ed147 /etc/init.d/scst: When parsing /etc/scst.conf for "TARGET_DRIVER ... {", accept blanks at the end of the line (merge r4259 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4687 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 09:34:53 +00:00
Bart Van Assche
bb1b060f6d scstadmin: Fix 0-named groups. (merge r4639 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4683 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 08:58:46 +00:00
Bart Van Assche
9a8b7a5f67 scst: Avoid that scst_adjust_sg() truncates requests above 512 KB (merge r4668 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-02 18:47:56 +00:00
Bart Van Assche
a3288d27e3 scst: Avoid that setting trace_level triggers an infinite loop (partial merge of trunk r4137)
Avoid that e.g. the following command triggers an infinite loop
echo "value 0x9c" > /sys/kernel/scst_tgt/trace_level

Reported-by: Jin Cheng <jcheng@vmem.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4665 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-27 08:53:40 +00:00
Bart Van Assche
1052aa7bce ib_srpt: Bump version
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4664 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-21 12:09:36 +00:00
Bart Van Assche
88a37b7a25 ib_srpt: Avoid that max_compl_time_ms is zero due to an integer overflow (merge r4662 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4663 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-21 12:05:36 +00:00
Bart Van Assche
ed5db967d8 nightly build: Merge from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4660 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-20 17:58:34 +00:00
Bart Van Assche
4fd2d32b80 scripts: Merge from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4659 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-20 17:57:25 +00:00
Bart Van Assche
6185ae237c Add kernel 3.7 support (merge r4645..4647 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4651 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-18 09:45:35 +00:00
Bart Van Assche
ae741601fb scst: Fix a recently introduced race condition (merge r4491 from trunk)
Make scst_unregister_target() wait again until the session
unregistration callbacks have finished instead of waiting only
until all sessions have been unregistered.


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4650 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-18 09:39:17 +00:00
Bart Van Assche
6b93cb0155 scst: Make extra_tgt_dev_list_entry users hold scst_mutex (merge r4386 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4649 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-18 09:33:24 +00:00
Bart Van Assche
0f7423dca9 scst: Rename scst_session.tgt_priv into sess_tgt_priv to minimize diffs with the trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4648 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-18 09:14:10 +00:00
Bart Van Assche
1f17f29658 qla2x00t: Remove a superfluous check from q2t_remove_target() (merge r4312 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4634 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-28 14:17:32 +00:00
Bart Van Assche
47f66b3bad qla2x00t: Correct q2t_abort_task() (merge r4457 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4633 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-28 14:07:13 +00:00
Bart Van Assche
caf9e827e9 qla2x00t: Eliminate double req_q_cnt checks when there is enough headroom (merge r4135 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4632 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-28 14:02:31 +00:00
Bart Van Assche
e0e724f022 qla2x00t: q2t_pci_map_calc_cnt() cleanup and microoptimization (merge r4273 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4631 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-28 14:00:16 +00:00
Bart Van Assche
2e53594570 qla2x00t: Remove a superfluous cast (merge r4487 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-28 13:57:51 +00:00
Bart Van Assche
77d2f1aaf0 qla2x00t: Keep smatch happy (merge r4486 from trunk)
Smatch reports two warnings on the qla2x00t code:
* sess->local being tested while sess can be NULL.
* The code after the out_unreg_target2x label is only necessary in the procfs build.


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4629 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-28 13:41:44 +00:00
Bart Van Assche
f781ba691a Fix incorrect error handling (merge r4494 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4628 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-25 08:48:29 +00:00
Bart Van Assche
0544c28695 scst_sysfs: Fix a help text (see also trunk r4483)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4627 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-25 08:37:37 +00:00
Bart Van Assche
391ae47690 Increment session refcount in scst_pre_rx_mgmt_cmd() instead of scst_post_rx_mgmt_cmd() (merge r4423 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4626 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-25 08:12:26 +00:00
Bart Van Assche
7ba44bbc51 ib_srpt: Avoid that module unloading races with closing sessions (merge r4446 from trunk)
Fixed issue:
    
BUG: unable to handle kernel paging request at ffffffffa04dc479
IP: [<ffffffffa04dc479>] 0xffffffffa04dc478
Oops: 0010 [#1] SMP
Pid: 29313, comm: srpt_mlx4_0-2 Tainted: G           O 3.6.0-rc1-debug+ #1
Process srpt_mlx4_0-2
Call Trace:
 [<ffffffff8106254e>] ? kthread+0xae/0xc0
 [<ffffffff81418464>] ? kernel_thread_helper+0x4/0x10
 [<ffffffff8140f080>] ? _raw_spin_unlock_irq+0x30/0x50
 [<ffffffff810983ad>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8140f359>] ? retint_restore_args+0xe/0xe
 [<ffffffff810624a0>] ? __init_kthread_worker+0x70/0x70
 [<ffffffff81418460>] ? gs_change+0xb/0xb
Code:  Bad RIP value.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4625 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-23 13:44:26 +00:00
Bart Van Assche
a646aba835 scst: Don't suspend activity during removal of a SCSI device (merge r4399 from trunk)
SCST allows SCSI pass-through to SCSI devices registered with the SCSI
initiator core. SCST I/O activity has to be suspended before a LUN
that corresponds to such a SCSI device can be removed safely. Do not
suspend I/O when a SCSI device is being removed that has not been
exported as an SCST LUN such that removal of such devices does not
slow down I/O.



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4624 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-23 09:02:10 +00:00
Bart Van Assche
e7ccb78272 RHEL 5.6 build fix (merge r3408 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 19:37:37 +00:00
Bart Van Assche
4c2c2c10c1 scst: Build fix for r4573
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 15:57:48 +00:00
Bart Van Assche
780f46cef4 scstadmin: Only enable /etc/init.d/scst in runlevels 3 and 5 since networking is not available in runlevels 2 or 4 (merge r4152 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 15:12:31 +00:00
Bart Van Assche
c9f05992d3 scstadmin: Suggest the user to use systemctl (systemd) instead of the LSB installation script if available (merge r4153 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4596 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 15:08:58 +00:00
Bart Van Assche
737aa4e5c7 scstadmin: Make /etc/init.d/scst status work on RHEL 6.2 (merge r4163 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:55:13 +00:00
Bart Van Assche
2ab470f796 scstadmin, FC (NPIV): Make -write_config save the "node_name" and "parent_host" attributes (merge r4306 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:53:17 +00:00
Bart Van Assche
7cc3997fd5 scstadmin: Make -write_config save the scst_local session name (merge r4304 and r4305 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:49:46 +00:00
Bart Van Assche
bc6da2b006 scstadmin: Allow hash signs to be escaped (merge r4391 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4592 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:48:14 +00:00
Bart Van Assche
ff41d8c887 scstadmin: Make _syswrite() translate EBUSY into "writing failed" (merge r4400 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4591 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:45:49 +00:00
Bart Van Assche
e991bd4845 scstadmin: Use $(DESTDIR) when uninstalling SCST 2.x startup scripts (merge r4536 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4590 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:42:15 +00:00
Bart Van Assche
9430abe77c scstadmin: Create /etc/default if it does not yet exist (merge r4537 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4589 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:40:33 +00:00
Bart Van Assche
d96929b17d qla2x00t: Relax the severity level of a diagnostic message (r4497)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4588 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:39:06 +00:00
Bart Van Assche
e562179bab scstadmin: Handle -EAGAIN when reading from sysfs (merge r4498 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4587 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:37:21 +00:00
Bart Van Assche
c758bd4ebd scst: Fix a comment in scst/include/scst.h (merge r4503 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4586 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:33:51 +00:00
Bart Van Assche
b5325996cf qla2x00t: Display a clear error message if the kernel is too old (merge r4510 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:32:40 +00:00
Bart Van Assche
c9b55878ad qla2x00t: Send back proper task management response code (merge r4529 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4584 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 14:30:10 +00:00