Joe Eykholt
a041986db3
fcst: fix abort handling
...
Call scst_tgt_cmd_done() on aborted commands.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1526 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 18:35:36 +00:00
Bart Van Assche
5dc06c26de
scripts/run-regression-tests works now for the 2.6.33 kernel too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1525 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 17:32:38 +00:00
Vladislav Bolkhovitin
9c02ed26c7
Update for 2.6.33
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1524 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 15:56:31 +00:00
Vladislav Bolkhovitin
5f973827df
Patch from Alexey Obitotskiy <alexeyo1@open-e.com> with cleanups and fixes implementing setting and managing relative target IDs.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1523 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-01 13:38:06 +00:00
Joe Eykholt
5d2da8b297
fcst: set max_hw_pending_time
...
The target template max_hw_pending_time was zero, causing
premature timeouts and a fast retry in scst_hw_pending_work_fn().
Set it to 20 seconds, like qla2x00t does, for now.
It could be the wrong thing for tape, but should be
plenty long enough for disks.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1522 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 18:23:23 +00:00
Vladislav Bolkhovitin
0c0a734968
A set of startup scripts for Gentoo customized by Scott R. Bowe <scottb@sentania.net>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 14:14:23 +00:00
Vladislav Bolkhovitin
713410951b
Minor fixes and cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1520 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 13:37:56 +00:00
Vladislav Bolkhovitin
968f9aa146
Property svn:ignore set
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1519 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-25 11:33:24 +00:00
Bart Van Assche
93e5dcab3c
Removed trailing whitespace because checkpatch complained about it.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1518 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-21 19:30:39 +00:00
Bart Van Assche
d50a02767d
Added fcst code in generate-kernel-patch output.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1517 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-21 09:00:20 +00:00
Vladislav Bolkhovitin
f1ee68d35d
Web updates and fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1516 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:35:28 +00:00
Vladislav Bolkhovitin
08161076f8
- New main Makefile target fcst added
...
- Preliminary fixes to compile on 2.6.33
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1515 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:08:10 +00:00
Vladislav Bolkhovitin
6023f1ad34
This patch adds a new target module for SCST and libfc
...
that accepts FCP requests from libfc HBAs running Fibre Channel
over Ethernet (FCoE) and passes them to SCST.
Signed-off-by: Joe Eykholt <jeykholt@cisco.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1514 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-20 20:02:02 +00:00
Vladislav Bolkhovitin
21140e2a07
Fixed incorrect condition in scst_hw_pending_work_fn() noticed by Joe Eykholt <jeykholt@cisco.com>
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1513 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-19 18:45:53 +00:00
Bart Van Assche
2d4d49f304
Fixed two WARN_ON() statements.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1512 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-19 12:03:48 +00:00
Vladislav Bolkhovitin
4d96089e50
Sysfs interface for targets made uniform. ISCSI-SCST made confirming the uniformity requirements. See README for details.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1511 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-17 19:07:54 +00:00
Bart Van Assche
9b82ea19be
Works now when started with a relative path too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1510 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-15 19:09:48 +00:00
Bart Van Assche
9c8f290140
Added to repository.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1509 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-15 17:34:22 +00:00
Bart Van Assche
c519012fb2
Factored out channel unregistration code into a new function srpt_unregister_channel().
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1508 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 12:51:14 +00:00
Bart Van Assche
4f7e597345
Fixed a memory leak in an error path.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1507 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 12:11:54 +00:00
Bart Van Assche
40869e57d1
Moved srpt_unmap_sg_to_ib_sge(ch, ioctx) call back into srpt_abort_scst_cmd().
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1506 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 12:08:47 +00:00
Bart Van Assche
add3508a0c
Changes:
...
- Fixed race condition between SCST session registration and IB channel event
handler in srpt_add_one(): at least in theory it was possible that
sdev->scst_tgt was accessed before being initialized properly.
- A kernel WARN_ON() is no longer triggered when a DREQ has been received after
SCST session deregistration started.
- Made sure that srpt_unmap_sg_to_ib_sge() does not call ib_dma_unmap_sg()
twice.
- Moved srpt_unmap_sg_to_ib_sge() call out of srpt_reset_ioctx() and
srpt_abort_scst_cmd() into the callers of these functions.
- Renamed some of the SRPT command states.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-14 11:36:34 +00:00
Bart Van Assche
cedf31579e
Removed handling of AESOLNT, CRSOLNT and LOSOLNT flags again.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1504 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 19:42:00 +00:00
Bart Van Assche
26866a1e28
Simplified implementation of the thread=1 mode.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1503 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 19:37:43 +00:00
Bart Van Assche
8981044fb8
Updated test instructions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1502 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 19:30:08 +00:00
Bart Van Assche
7eee1392b8
Compiles again without warnings.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1501 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 18:59:15 +00:00
Vladislav Bolkhovitin
82e07ddb73
Commented out required by iSCSI RFC, but not needed for processing, check of LUN field in Data-Out PDU, because some initiators (Windows, at least) don't care to correctly set it.
...
Reported and tested by Ladislav Pašek <pasek@valbek.cz >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 13:12:58 +00:00
Vladislav Bolkhovitin
8a4b3a1732
Those files were deleted moving to new pass-through implementation, but should have been resurrected when that implementation was limited to 2.6.30+ kernels only. Fixing.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1499 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-12 13:07:23 +00:00
Bart Van Assche
492e570df0
Made ib_srpt easier to build on a multiboot system where multiple kernels
...
have been installed -- one kernel with OFED and one or more kernels without
OFED.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1498 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-11 19:28:58 +00:00
Bart Van Assche
7c04f47a6b
Fixed two MODULE_PARM_DESC() clauses.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1497 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-11 19:27:49 +00:00
Vladislav Bolkhovitin
b611a22ed0
Patch from Christian Motschke <motschke@itso-berlin.de>:
...
I had some problems compiling scst due to some bashisms in the Makefiles. As
you will know, Debian uses /bin/dash as default shell and /bin/sh is only a
link to /bin/dash. I can either change the default shell, (or in my opinion
the better solution) use SHELL=/bin/bash in the Makefile.
I have made a patch for the Makefiles in question (I hope, that are all
Makefiles).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1496 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-10 19:32:31 +00:00
Vladislav Bolkhovitin
d880bdab9d
cmnd_reject() should return supplied reason, not hardcoded ISCSI_REASON_INVALID_PDU_FIELD
...
Noticed by Alexey Obitotskiy <alexeyo1@open-e.com >
This line, and those below, will be ignored--
M trunk/iscsi-scst/usr/iscsid.c
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1495 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-10 19:22:39 +00:00
Bart Van Assche
8ed82e1dbe
Updated kernel revisions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1494 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-09 15:46:10 +00:00
Bart Van Assche
2032370cca
svn merge -c1492 https://scst.svn.sourceforge.net/svnroot/scst/branches/srpt-separate-rx-tx-buffers/scripts
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1493 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-07 09:06:03 +00:00
Vladislav Bolkhovitin
f42a81e94a
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1490 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-02-02 17:16:58 +00:00
Bart Van Assche
0b3861da48
Added a blank line.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-29 19:09:06 +00:00
Bart Van Assche
773ec6e974
Updated kernel revisions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-29 11:54:38 +00:00
Vladislav Bolkhovitin
28ed0ed7e3
session_active_commands_attr attribute must have active_commands name.
...
Reported by Joe Eykholt <jeykholt@cisco.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-26 13:02:13 +00:00
Bart Van Assche
f7f8c13456
Updated kernel revisions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1477 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-26 11:52:01 +00:00
Bart Van Assche
4c3a1c3e9e
Updated kernel revisions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1476 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-23 08:54:06 +00:00
Bart Van Assche
fa91abb965
Updated kernel revisions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1475 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-19 11:37:41 +00:00
Bart Van Assche
30fef168be
Moved comma's in table header to the proper place.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-17 17:36:50 +00:00
Bart Van Assche
421dbafa7c
Changes:
...
- The entire receive queue can be used again instead of only SRPT_RQ_SIZE - 1
elements (as in r1470).
- Added initiator-lockup-avoidance code to SRP_TSK_MGMT processing code too.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-17 13:07:46 +00:00
Bart Van Assche
5ce3870372
Updated test instructions.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-16 19:38:08 +00:00
Bart Van Assche
e3d9724359
Updated copyright statement.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-16 19:36:29 +00:00
Bart Van Assche
c654261e03
Changes:
...
- Updated copyright statement.
- Micro-optimized the function srpt_req_lim_delta().
- Made sure that SRPT does not cause a lockup in (at least) the Linux SRP
initiator. See also http://bugzilla.kernel.org/show_bug.cgi?id=14235 .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-14 20:35:37 +00:00
Bart Van Assche
3d9011443c
Removed a trailing space because checkpatch complained about it.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-14 13:37:56 +00:00
Bart Van Assche
6384c37e83
Enabled sparse checking for the 2.6.23.17 kernel.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-14 13:28:26 +00:00
Vladislav Bolkhovitin
5b77c89fbd
Patch from Gilad H <gilad.public2@gmail.com> with improvements fixing the following scenario:
...
1. Commands start going to the init_cmd_list probably because SCST was suspended
2. A command is now waiting in the init_cmd_list, it was not yet completely initialized (more impotently cmd->dev == NULL)
3. A clear task set for the same lun arrives from a different initiator
4. The command is marked as aborted from other initiator and released from the init list.
5. The command gets to the PRE_XMIT_RESPONSE state, since it was aborted the scst_xmit_process_aborted_cmd is called.
6. At this stage since the command is marked as aborted by other initiator the scst checks for the device TAS flag (cmd->dev->tas) however cmd->dev is NULL and we crash on Null pointer de-referencing.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-14 13:14:30 +00:00
Vladislav Bolkhovitin
04cb08ec2d
Improve handling of aborts of done commands
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-01-14 12:59:13 +00:00