Commit Graph

3171 Commits

Author SHA1 Message Date
Bart Van Assche
fcfe100b79 ib_srpt, procfs: Remove code that shows the login information - it is redundant to the ibsrpdm output anyway.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-01 18:22:30 +00:00
Bart Van Assche
1a0b957efc /etc/init.d/scst: When parsing /etc/scst.conf for "TARGET_DRIVER ... {", accept blanks at the end of the line.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4259 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-01 18:17:24 +00:00
Bart Van Assche
8f1017612b ib_srpt: Rewrite the gcc <= 4.6 compiler bug workaround such that it doesn't trigger a checkpatch complaint
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-01 06:46:28 +00:00
Bart Van Assche
96cbffaad5 scst: Fix a checkpatch complaint about whitespace
"ERROR: code indent should use tabs where possible"


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4257 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-01 06:39:37 +00:00
Vladislav Bolkhovitin
aeea39f9f1 Let's enforce initializing cmd->lba the same way as for data_len.
This field also expected to be always initialized.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4256 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 20:50:08 +00:00
Vladislav Bolkhovitin
820d8e638a Microoptimization: there's no need to chack if op is valid for each opcode.
Instead, all empty entires can be initialized as invalid opcode handler.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4255 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 20:25:12 +00:00
Vladislav Bolkhovitin
474dca1fb2 scst: Move ioctx manipulation code
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
2012-04-30 19:41:18 +00:00
Vladislav Bolkhovitin
a913a223f9 iSCSI-SCST: Add scstadmin example todocumentation
Add an scstadmin iSNSServer configuration example to the iSCSI-SCST
documentation.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4253 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 19:32:30 +00:00
Vladislav Bolkhovitin
ec5adf6e1a scst_check_auto_sense(): Change return typefrom int to bool
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4252 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 19:31:13 +00:00
Vladislav Bolkhovitin
e1d73542b2 iSCSI-SCST: Fix a typo in an error message
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4251 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 19:29:47 +00:00
Vladislav Bolkhovitin
3979325ed9 vcdrom: Process CDROMs without medium correctly
Signed-off-by: Bart Van Assche <bvanassche@acm.org>

with small improvements



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4250 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 19:28:21 +00:00
Vladislav Bolkhovitin
2649b163c3 Fix compilation on kernel prior 2.6.33 + remove setting block dev unmap requirements to not BLOCKIO devices.
Let the underlying FS handle it.

The compilation issue reported by Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4248 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-30 19:06:30 +00:00
Vladislav Bolkhovitin
921e533528 Rename scst_alloc()/scst_free() to scst_alloc_sg()/scst_free_sg()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4247 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-28 00:25:41 +00:00
Vladislav Bolkhovitin
4a344f5674 Move block_size and block_shift into struct scst_device and by it simplify and cleanup processing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4246 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-27 20:31:57 +00:00
Bart Van Assche
e119078248 scst: Make the source code build again for kernels 2.6.29 .. 2.6.31
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4244 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-27 07:39:50 +00:00
Bart Van Assche
24a0dca5c6 scst: Remove a superfluous semicolon since checkpatch complains about it.
+      1 WARNING: Statements terminations use 1 semicolon


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-27 07:06:37 +00:00
Bart Van Assche
7d8b3ffb48 scst: Avoid that checkpatch complains about whitespace
+      1 ERROR: need consistent spacing around '|' (ctx:VxW)


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4242 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-27 07:04:31 +00:00
Vladislav Bolkhovitin
f89d35bedf Unmap via fallocate added + some cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4241 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 22:22:23 +00:00
Vladislav Bolkhovitin
2f99683ba2 Basic stab for mandatory SEND DIAGNOSTIC command
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4240 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 21:11:40 +00:00
Vladislav Bolkhovitin
c5030c159d Complete the previous fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4239 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 19:44:25 +00:00
Vladislav Bolkhovitin
3f0b7169ba Fix incorrect state check in the debug trap reported by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4238 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 18:41:14 +00:00
Bart Van Assche
1856c4985b ib_srpt: Process chained sg lists correctly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 12:37:48 +00:00
Bart Van Assche
5da87a103a scst: Fix recently introduced checkpatch complaints about whitespace
+      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
2012-04-26 11:13:12 +00:00
Bart Van Assche
d43e113e60 scst: Remove recently added trailing whitespace
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-26 11:00:23 +00:00
Bart Van Assche
d7547a3014 nightly build: Update kernel versions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4225 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-25 06:29:35 +00:00
Vladislav Bolkhovitin
1d2a7e3364 Improve commands parsing and allow uniform LBA decoding as well as changing LBA and transfer length in uniform manner.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-25 03:11:23 +00:00
Vladislav Bolkhovitin
930135ee7b Minor help improvement
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4223 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-24 21:34:11 +00:00
Bart Van Assche
707535b683 ib_srpt: Update an error message
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4222 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-24 08:01:34 +00:00
Bart Van Assche
84cbe52cf4 ib_srpt: Make sure that srpt_cm_req_recv() returns a negative value if login is refused
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4221 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-24 07:59:12 +00:00
Bart Van Assche
56684eee96 ib_srpt: Change return value of srpt_handle_tsk_mgmt() from u8 into void
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4220 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-24 07:54:33 +00:00
Bart Van Assche
cd3f9bfea8 ib_srpt: Process receive completions on the context of an SCST worker thread
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
2012-04-21 11:51:48 +00:00
Vladislav Bolkhovitin
462974b410 SCSTLun: bug fix on t10 dev id assignment
By Riccardo <r.bicelli@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4218 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-21 02:59:38 +00:00
Vladislav Bolkhovitin
64699a540a TM handling improvements
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
2012-04-19 17:46:36 +00:00
Vladislav Bolkhovitin
eb95049061 Copyrights updated + cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4216 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-18 02:26:39 +00:00
Vladislav Bolkhovitin
b9ef044444 Parse errors processing cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4215 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-18 01:46:05 +00:00
Vladislav Bolkhovitin
2c23bf200d scst_set_io_context(): Save old I/O context
Fix somehow missed saving old IO context

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4214 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-18 01:29:14 +00:00
Vladislav Bolkhovitin
f742ae018e scst_vdisk: Add zero-copy file I/O readsupport
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
2012-04-18 01:19:28 +00:00
Bart Van Assche
2d71d64481 ib_srpt: Remove a superfluous test
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4212 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-14 13:04:11 +00:00
Bart Van Assche
1c4b023f83 ib_srpt: Only enable the recently added gcc workaround for gcc 4.6 and earlier
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4211 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-14 12:56:36 +00:00
Vladislav Bolkhovitin
f9caacd8eb "My own Storage Linux OS" added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4210 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-13 20:47:14 +00:00
Vladislav Bolkhovitin
c5b4450728 qla2x00t-howto clarifications
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
2012-04-13 20:36:49 +00:00
Vladislav Bolkhovitin
0dd7573989 Fix for missed mempool_destroy() in case when CONFIG_TCP_ZERO_COPY_TRANSFER_COMPLETION_NOTIFICATION not defined noticed by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4208 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-13 20:28:50 +00:00
Bart Van Assche
52cc71c5ef scripts/rebuild-rhel-kernel-rpm: Make this script work when started with a relative path
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4206 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-12 12:20:31 +00:00
Bart Van Assche
f022a827ba ib_srpt: Close active sessions when disabling a target
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4202 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-10 15:02:13 +00:00
Bart Van Assche
e4bc6f2b2b ib_srpt: Workaround for an openSUSE 12.1 compiler bug (see also http://bugzilla.novell.com/show_bug.cgi?id=756235)
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4201 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-10 14:59:26 +00:00
Bart Van Assche
b675a6b02c ib_srpt: Make sure that pre-RTU requests are processed before post-RTU requests
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-10 14:58:31 +00:00
Vladislav Bolkhovitin
83dbc69d4e scst: Fix debug_print_with_prefix()
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
2012-04-10 02:26:25 +00:00
Bart Van Assche
1285dd1dad ib_srpt: Update ChangeLog
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-07 09:13:50 +00:00
Bart Van Assche
420f85c39b fcst: Handle exchange timeout gracefully
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
2012-04-07 07:30:52 +00:00
Bart Van Assche
3c2957284c ib_srpt: Avoid that sessions are not unregistered properly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4193 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-06 08:11:47 +00:00