Move the code for obtaining and releasing an I/O context out of
scst_process_active_cmd() in order to improve source code
readability.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4254 d57e44dd-8a1f-0410-8b47-8ef2f437770f
+ 2 ERROR: code indent should use tabs where possible
+ 2 ERROR: need consistent spacing around '|' (ctx:VxW)
+ 2 WARNING: please, no space before tabs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4234 d57e44dd-8a1f-0410-8b47-8ef2f437770f
instead of on the context of an srpt thread. Improves performance for many
configurations but decreases performance up to 10% in some cases.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4219 d57e44dd-8a1f-0410-8b47-8ef2f437770f
TM actions should be done only after all affected commands done to avoid
possibility that any of them be executed with newly set parameters.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4217 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Speeds up reading from a RAM disk via ib_srpt by about 30%.
Tested with iSCSI-SCST, ib_srpt and scst_local.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
In it:
- Fixed NULLIO, which the original patch breaks
- Changed on all fast paths sBUG_ON() on EXTRACHECKS_BUG_ON()
- Fixed errors path in non_fileio_exec() and fileio_alloc_data_buf().
- Renamed zero_copy_read to just zero_copy.
- Docs and change log updated
- Some cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4213 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Clarify the qla2x00t how-to where necessary:
- Add instructions to unload the upstream qla2xxx kernel module
before starting to build the SCST qla2xxx kernel modules.
- Change the name qla2xxx into qla2xxx_scst in the step for
loading kernel modules.
- Replace the instructions for removing the distro-provided qla2xxx kernel
module by instructions for blacklisting that module and rebuilding the
initial RAM disk.
- Prepend all commands that have to be executed by the user by a prompt.
- Add instructions for RHEL / SUSE next to Debian.
- Shortened Debian kernel development package list.
Markup changes:
- Use a CSS style attribute to specify the distance between steps instead of
using <br><br><br>.
- Add a missing </li> tag.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4209 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Terminate lines passed to debug_print_with_prefix() with a newline. Make
sure that a formatting specification in an argument past "fmt" is printed
literally instead of being interpreted as a format specification.
The newlines are only missing when sending kernel logging to a remote
system via netconsole and not when using local logging
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4199 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This is a backport of commit e1c4038282c7586c3544542b37872c434669d3ac by
Mark Rustad <mark.d.rustad@intel.com>. This patch avoids that unregistering
a session hangs after an exchange timeout occurred.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
Avoid that suspending activity causes scst_init_threads() to delay.
That delay has been observed to cause "task blocked for more than ...
seconds" complaints.
Reported-by: yangfanlinux <yangfanlinux@gmail.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4189 d57e44dd-8a1f-0410-8b47-8ef2f437770f