Commit Graph

3197 Commits

Author SHA1 Message Date
Bart Van Assche
862d84df64 nightly build: Kernel version updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4293 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-08 21:25:00 +00:00
Bart Van Assche
0aca2096d9 scst_vdisk, kernel 2.6.32: Avoid that adding a vdisk_blockio device triggers a BUG()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4292 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-08 21:09:40 +00:00
Vladislav Bolkhovitin
79b72d5606 Web updates: on Emulex request remove all references to it.
For more details see http://sourceforge.net/mailarchive/forum.php?thread_name=4FA2A8F0.9070703%40emulex.com&forum_name=scst-devel



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4291 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-08 01:48:49 +00:00
Vladislav Bolkhovitin
3b57904da6 Unify parsing of descriptors-based and internal commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4290 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-07 22:39:54 +00:00
Bart Van Assche
7596ffd7dd ib_srpt: Reduce RDMA_COMPL_TIMEOUT_S back to its original value now that read and write processing happens again on the context of the SCST command threads instead of the srpt completion thread
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4289 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-07 14:59:57 +00:00
Vladislav Bolkhovitin
74e1d9884c Small comments clarification
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4286 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-04 22:23:59 +00:00
Bart Van Assche
48fc76ecb4 ib_srpt: Revert most of r4282 - a channel must be added to the channel list before unlocking the spinlock such that the completion thread can safely invoke list_del()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4284 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-04 17:18:22 +00:00
Bart Van Assche
1baaaea48b ib_srpt: Test earlier during login whether a port has been disabled
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4282 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-04 13:49:04 +00:00
Bart Van Assche
4b47a45373 ib_srpt: Make the login log line easier to read
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4281 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-04 13:45:25 +00:00
Bart Van Assche
8f334bd78e ib_srpt: Fix a few (theoretical ?) race conditions
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4278 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 11:00:39 +00:00
Bart Van Assche
30cfdfd079 ib_srpt, Testing.txt: Add a test
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 09:55:41 +00:00
Bart Van Assche
5496aa9c2d ib_srpt, Testing.txt: Add a test
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4276 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 09:03:09 +00:00
Bart Van Assche
5710833147 ib_srpt, Testing.txt: Minor corrections
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4275 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 08:48:43 +00:00
Bart Van Assche
7dfb0f3b0a scst_vdisk: Add a return statement at the end of a function. This makes the nightly build succeed again with option "-u".
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4274 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-03 06:40:01 +00:00
Vladislav Bolkhovitin
8ee91132a8 Cleanup and microoptimization: it's better to use DIV_ROUND_UP is such cases
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4273 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 19:47:55 +00:00
Vladislav Bolkhovitin
b3ca5afd06 Cleanup and compile fix for breakage reported by Bart Van Assche <bvanassche@acm.org>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4272 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 18:42:30 +00:00
Bart Van Assche
1d6daae29e ib_srpt: Handle thread creation failure properly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4270 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 15:19:40 +00:00
Bart Van Assche
dc94ba7d76 ib_srpt: Simplify login error handling code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4269 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 15:18:24 +00:00
Bart Van Assche
08a2d59408 ib_srpt: Correct __srpt_close_ch() comments.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4268 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 15:16:40 +00:00
Bart Van Assche
c2cea7b776 ib_srpt: Handle thread creation failure properly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4267 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 13:57:07 +00:00
Bart Van Assche
ac77b3110d ib_srpt: Rename a label
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4266 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 13:48:54 +00:00
Bart Van Assche
11f5cf447c ib_srpt: Add a comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4265 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 09:46:04 +00:00
Bart Van Assche
8d775b8f39 ib_srpt: Replace list_for_each_entry_safe() by list_for_each_entry() where this is safe
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4264 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 09:35:40 +00:00
Bart Van Assche
7937b1b5cb ib_srpt: Remove an unused variable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4263 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-02 09:30:22 +00:00
Vladislav Bolkhovitin
8f289d5f8e WRITE SAME implemented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4262 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-01 22:25:37 +00:00
Vladislav Bolkhovitin
2374c7e42e Small cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4261 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-05-01 18:41:26 +00:00
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