Commit Graph

2870 Commits

Author SHA1 Message Date
Bart Van Assche
aa7647b0bb Fix a typo introduced in r3858
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3859 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:38:09 +00:00
Bart Van Assche
191f40304d ib_srpt: Make sure that rmmod finishes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3858 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:24:37 +00:00
Bart Van Assche
ff60ad9a52 ib_srpt: Don't wait forever for the Last WQE event
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3857 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:23:36 +00:00
Bart Van Assche
c3c23dcb7e ib_srpt: Make srpt_release_sdev() logging more informative
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3856 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:22:13 +00:00
Bart Van Assche
97547c2f1d ib_srpt: Relax a WARN_ON() statement such that it doesn't fire needlessly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3855 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:21:07 +00:00
Bart Van Assche
5f0326aa3d ib_srpt: Mask off AGN_MASK bits before invoking ib_cm_listen()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3854 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:19:45 +00:00
Bart Van Assche
40c8c3ae0a ib_srpt: Make error reporting more detailed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3853 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 15:17:41 +00:00
Vladislav Bolkhovitin
29ebc5ba12 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3850 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-08 02:17:01 +00:00
Bart Van Assche
5a4ee2342b ib_srpt: Remove to-do list because outdated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3847 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 19:03:06 +00:00
Bart Van Assche
bde71b8cff scst_vdisk, thin provisioning: unmap the largest range possible even if the
upper bound of the range is not a multiple of PAGE_CACHE_SIZE. This is a
follow-up for r3799 and removes the PRINT_ERROR() statement introduced in that
revision.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 18:52:46 +00:00
Bart Van Assche
b5865c7969 /etc/init.d: When installing SCST 3.0, disable and remove the now obsolete iscsi-scst and qla2x00t init scripts.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3843 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-04 11:57:39 +00:00
Vladislav Bolkhovitin
43d576aa48 Changelogs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3842 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 20:15:42 +00:00
Vladislav Bolkhovitin
370735f023 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:47:41 +00:00
Vladislav Bolkhovitin
29a71a91e5 Update tag for 2.1.0 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3838 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:04:24 +00:00
Vladislav Bolkhovitin
960239ed1e - Fix possible deadlock between vdev_sysfs_process_get_filename() and vdisk_del_device()
- Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3833 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 18:22:27 +00:00
Bart Van Assche
2eb5d1ea6c nightly build: kernel version updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3832 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-31 18:11:21 +00:00
Vladislav Bolkhovitin
1da1aa9dd4 Fix possible crash on rel_tgt_id set on transports without is_target_enabled() defined.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3831 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-25 18:08:45 +00:00
Vladislav Bolkhovitin
0eb108577a Suppoert for rotational attribute added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3830 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-24 15:30:59 +00:00
Vladislav Bolkhovitin
978e073a28 Mode pages cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3829 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-24 00:20:06 +00:00
Bart Van Assche
648920e86b scst: Avoid triggering BUG() on uniprocessor systems
On uniprocessor systems with lock debugging disabled spin_is_locked()
returns false. Disable the spin_is_locked() checks if CONFIG_SMP has not
been defined.

Reported-by: Frank <frank@debian-nas.org>
Signed-off-by: Dave Carroll <dcarroll@astekcorp.com>
Cc: scst-devel <scst-devel@lists.sourceforge.net>
Cc: Frank <frank@debian-nas.org>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3828 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-22 19:19:56 +00:00
Bart Van Assche
706407c334 /etc/init.d/scst: Let "scst start" proceed even if the config file is missing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3827 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-22 19:09:59 +00:00
Bart Van Assche
24fc29b9d6 Follow-up for r3816: make sure that /etc/init.d/scst restart works again
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3826 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-21 08:21:31 +00:00
Bart Van Assche
08a80a59bc documentation, spelling: Change phisical into physical
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3825 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-20 14:04:52 +00:00
Vladislav Bolkhovitin
77fa083dbb Fix for one more forgotten initialization in preparing internal commands spotted by kordex@gmail.com
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3824 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-19 23:55:31 +00:00
Vladislav Bolkhovitin
1d2dedddcc Update of SCST_Gentoo_HOWTO.txt from Willem Boterenbrood <w.boterenbrood@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3823 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-19 23:20:22 +00:00
Bart Van Assche
412ef99c73 nightly build config: Update to kernel version 3.0.3
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3822 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-19 09:18:44 +00:00
Bart Van Assche
c9bd29a8b9 ib_srpt: Clean up tracing statements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3821 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-18 09:08:22 +00:00
Vladislav Bolkhovitin
c470a43c5e The implementation of many tracing macros in scst_debug.h (like TRACE_DBG)
requires that at least one more argument must be provided in addition to format
which in some cases is an overkill. This patch fixes the issue and also unifies
macro signatures for the cases when CONFIG_SCST_DEBUG is either on or off.

Signed-off-by: Sergey Myasnikov <tigra564 at gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3820 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-18 00:39:13 +00:00
Vladislav Bolkhovitin
5503fb0646 Disable accepting initiator mode commands if initiator mode not enabled
for 23xx- chips as well as suggested by ido benda <idombd@gmail.com>.

This is extension of r3261 to qla2x00_queuecommand().



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3819 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-18 00:27:12 +00:00
Vladislav Bolkhovitin
8672c1d5a0 Fix for forgotten devt initialization in preparing internal commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3818 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-18 00:17:06 +00:00
Bart Van Assche
ea68c9a775 nightly build config: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3817 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 14:51:48 +00:00
Bart Van Assche
34714117d1 /etc/init.d/scst, Gentoo: do not require that /etc/scst.conf exists when starting SCST. Makes the init script behavior on Gentoo consistent with LSB-compliant distributions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 08:27:18 +00:00
Bart Van Assche
832968b65e ib_srpt: Builds again on 32-bit systems
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3815 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 08:21:08 +00:00
Bart Van Assche
50c2ef2e01 srpt/Makefile: Use $(MAKE) instead of make when recursing. See also http://www.gnu.org/s/hello/manual/make/MAKE-Variable.html for more information about why this is important.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3814 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 07:51:08 +00:00
Bart Van Assche
de5c72d569 nightly build: remove "pcbart" config, rename "cellbuzz" into "nightly" and restore previously removed kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3813 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-17 06:58:21 +00:00
Bart Van Assche
d554d56423 scripts/specialize-patch: Make sure that checkpatch doesn't complain about space after operator \!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3812 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 12:22:31 +00:00
Bart Van Assche
de8bc79ae0 scripts/filter-trace-entry-exit: Filter out "return;" statements at the end of a function that are not preceeded by a label.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3811 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 12:20:25 +00:00
Bart Van Assche
78d62e7dd1 scripts/specialize-patch: Only emit "g1" debug output if debugging has been enabled.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3810 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 11:48:48 +00:00
Bart Van Assche
9455613488 scripts/specialize-patch: Update comments next to #else and #endif directives.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3809 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 11:26:59 +00:00
Bart Van Assche
8f48d8d7e9 Follow-up for r3807: make the hunk headers match again.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3808 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 08:32:23 +00:00
Bart Van Assche
803bae6fb8 scripts/specialize-patch: Remove #elif 0 sections from the output
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3807 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-16 07:47:32 +00:00
Bart Van Assche
49147b3d8d Change __constant_cpu_... into cpu_... since the latter is also evaluated at compile time.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3806 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 19:03:03 +00:00
Bart Van Assche
0042639266 /etc/init.d/scst: Port to Gentoo
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3805 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 16:13:33 +00:00
Bart Van Assche
eb24966570 scst_local: Fix a recently introduced compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3804 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 15:51:17 +00:00
Bart Van Assche
0e26a6c7a5 ib_srpt: Change __constant_cpu_... into cpu_... since the latter are also evaluated at compile time
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3803 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 08:48:42 +00:00
Bart Van Assche
4eebec2e1b Update according to new kernel.org directory tree structure
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3802 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-14 08:07:38 +00:00
Bart Van Assche
72060a5ec5 Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3801 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-13 14:10:16 +00:00
Vladislav Bolkhovitin
632b6beeeb Update of SCST_Gentoo_HOWTO.txt to SCST 2.x. Thanks to Willem Boterenbrood <w.boterenbrood@gmail.com>!
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3800 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-09 01:04:57 +00:00
Vladislav Bolkhovitin
2fa4898b5e Modified patch from Bart Van Assche <bvanassche@acm.org>:
The range unmapped by the scst_vdisk handler when processing an UNMAP command
is not correct. The patch below fixes that and also prevents that the following
kernel crash can be triggered on the target:

Call Trace:
 [<ffffffffa06b5350>] ? srpt_post_send+0xd0/0x140 [ib_srpt]
 [<ffffffff811bb595>] ? cpumask_next_and+0x35/0x50
 [<ffffffff810e6296>] shmem_truncate_range+0x7a6/0xa50
 [<ffffffffa0612ceb>] ? scst_get_buf_full+0x16b/0x270 [scst]
 [<ffffffffa069beb6>] vdisk_exec_unmap+0x1d6/0x4b0 [scst_vdisk]
 [<ffffffff813c0cb6>] ? _raw_spin_unlock+0x16/0x40
 [<ffffffffa069dadc>] vdisk_do_job+0x5fc/0x950 [scst_vdisk]
 [<ffffffffa0605402>] scst_do_real_exec+0xb2/0x400 [scst]
 [<ffffffffa06076a7>] scst_exec+0xd7/0x240 [scst]
 [<ffffffffa06079b6>] scst_send_for_exec+0x1a6/0x2f0 [scst]
 [<ffffffffa06086f8>] scst_process_active_cmd+0x4f8/0x790 [scst]
 [<ffffffffa0608a29>] scst_do_job_active+0x99/0x170 [scst]
 [<ffffffffa060a3da>] scst_cmd_thread+0x15a/0x3b0 [scst]
 [<ffffffff81047470>] ? default_wake_function+0x0/0x20
 [<ffffffffa060a280>] ? scst_cmd_thread+0x0/0x3b0 [scst]
 [<ffffffff8106dc26>] kthread+0x96/0xa0
 [<ffffffff81003cd4>] kernel_thread_helper+0x4/0x10
 [<ffffffff8103db01>] ? finish_task_switch+0x51/0xb0
 [<ffffffff813c0c7c>] ? _raw_spin_unlock_irq+0x1c/0x40
 [<ffffffff813c18b1>] ? restore_args+0x0/0x30
 [<ffffffff8106db90>] ? kthread+0x0/0xa0
 [<ffffffff81003cd0>] ? kernel_thread_helper+0x0/0x10

Invoking truncate_range() with an end len that is not page-size aligned
triggers it. In other words, with a block size that is below
PAGE_CACHE_SIZE some UNMAP commands could trigger a kernel bug. I think
it's better to print an error message and to skip an UNMAP command
instead of triggering a kernel oops.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3799 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-05 02:07:35 +00:00
Bart Van Assche
47170d1578 ib_srpt: Function tracing output format fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-08-03 12:46:13 +00:00