Mark Buechler
4be7ffa4da
- Replace a device on a given LUN when applying the configuration instead of removing
...
the old device and assigning the new one.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 14:58:19 +00:00
Bart Van Assche
393c423380
Excluded qla2x00t from local build because compiling it is only possible after having modified the local kernel headers.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1130 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 07:03:29 +00:00
Bart Van Assche
2a01729d4d
Builds again when CONFIG_SCST_DEBUG has not been defined.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1129 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-23 06:50:49 +00:00
Bart Van Assche
18fcb11be3
Added error injection code: the kernel parameter processing_delay_in_us
...
allows to control by how much the srpt_completion() function (which runs
in interrupt context) will be delayed.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1128 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 19:18:45 +00:00
Bart Van Assche
192e2eff4f
Added qla2x00t to the nightly build.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1127 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 18:27:54 +00:00
Bart Van Assche
59e5d0410c
More whitespace-only changes that fix several checkpatch errors.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1126 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 18:26:33 +00:00
Bart Van Assche
f582bf72d3
Removed trailing whitespace.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1125 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 18:07:18 +00:00
Vladislav Bolkhovitin
a6b332d795
- Grammar fixes suggested by Richard Sharpe <realrichardsharpe@gmail.com>
...
- Minor cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1124 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-22 06:56:28 +00:00
Bart Van Assche
9adc308a2a
Since it is normal that the SCST core calls srpt_xmit_response() for
...
a command that has already been aborted, changed the message that
reports this from an error message to an informational message.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1123 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-21 18:43:15 +00:00
Vladislav Bolkhovitin
150aec02e5
Users page added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-21 12:55:54 +00:00
Bart Van Assche
81bf548098
- Added command-line option -j, which allows to use fio for measuring
...
I/O times instead of dd.
- For asynchronous (buffered) write tests with dd, switched from
sync-after-every-write to sync-at-end.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-20 12:11:12 +00:00
Dotan Barak
069d3ef3f1
Incorporate last patch submitted for task management retry.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1120 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-19 20:18:03 +00:00
Bart Van Assche
d9abf60c23
Fixed typo in an error message.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1119 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-19 19:01:30 +00:00
Bart Van Assche
1afa718390
Ported the OFED 1.5 commit http://www.openfabrics.org/git/?p=ofed_1_5/linux-2.6.git;a=commitdiff;h=ce223537aeb05c9e4c36eab2b509fb98a33ba359 :
...
replaced dma_*map* calls by ib_dma_*map* calls. Added the conversion
of dma_sync_single_for_device() to ib_dma_sync_single_for_device().
This only changes the behavior of SRPT for those IB interfaces whose
driver implements the ib_dma_mapping_ops operations.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1118 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-19 18:22:22 +00:00
Bart Van Assche
9381444e7d
Applied a modified version of OFED commit http://www.openfabrics.org/git/?p=ofed_1_5/linux-2.6.git;a=commitdiff;h=6b20b3fb9b51722f382d6bfe333ec5bb5c216e9f .
...
The OFED commit made a.o. ib_srpt.c compile on 2.6.30 and later kernels.
Although the SCST ib_srpt.c code already compiles on a 2.6.30 kernel, this
commit has been ported to SCST because the source code of the OFED
implementation is cleaner. This commit does not change any functionality
of SCST's SRPT.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-19 16:40:01 +00:00
Bart Van Assche
f048bf9956
Changed a PRINT_ERROR() statement into a PRINT_INFO() statement because
...
this statement is triggered during the normal logout / relogin procedure.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1116 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 19:03:24 +00:00
Bart Van Assche
0a7c9e1f67
Potential fix for the following kernel bug report:
...
------------[ cut here ]------------
ib_srpt: srpt_xmit_response: tag= 26 channel in bad state 2
scst: ***ERROR***: Target driver ib_srpt xmit_response() returned fatal error
ib_srpt: srpt_xmit_response: tag= 38 channel in bad state 2
scst: ***ERROR***: Target driver ib_srpt xmit_response() returned fatal error
ib_srpt: srpt_xmit_response: tag= 27 channel in bad state 2
<repeated many times>
kernel BUG at /root/scst/scst/src/scst_targ.c:3089!
invalid opcode: 0000 [1] SMP
CPU 0
...
RIP: 0010:[<ffffffffa04759f6>] [<ffffffffa04759f6>] scst_tgt_cmd_done+0x26/0x30 [scst]
RSP: 0018:ffff88039ad27b50 EFLAGS: 00010297
RAX: 0000000000000200 RBX: ffff8803ad9c68f8 RCX: 0000000000000000
RDX: 00000000ffffffff RSI: 0000000000000000 RDI: ffff8803ad9c68f8
RBP: ffff88039ad27b50 R08: 0000000000000000 R09: 0000000000000000
R10: ffff88039ad277c0 R11: ffff88041ad278cf R12: ffff8803c2972180
R13: ffff88039ada0000 R14: 0000000000000001 R15: ffff8803fb00c2b0
FS: 0000000000000000(0000) GS:ffffffff807dd000(0000) knlGS:0000000000000000
CS: 0010 DS: 0018 ES: 0018 CR0: 000000008005003b
CR2: 00007f9281e64000 CR3: 0000000000201000 CR4: 00000000000006e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Process ib_cm/0 (pid: 8299, threadinfo ffff88039ad26000, task ffff88039ad40000)
Stack: ffff88039ad27b80 ffffffffa04c0c47 ffff88039a8db900 ffff8803c2972180
ffff8803fb00c240 ffff8803fb00c284 ffff88039ad27bc0 ffffffffa04c0d93
ffff88042a4959c0 ffff88042a9d7800 ffff88042544da00 ffff88042a9d7898
Call Trace:
[<ffffffffa04c0c47>] srpt_abort_scst_cmd+0xd7/0x160 [ib_srpt]
[<ffffffffa04c0d93>] srpt_release_channel+0xc3/0x190 [ib_srpt]
[<ffffffffa04c0e82>] srpt_find_and_release_channel+0x22/0x30 [ib_srpt]
[<ffffffffa04c227d>] srpt_cm_handler+0x6d/0xbb8 [ib_srpt]
[<ffffffff80247526>] ? try_to_wake_up+0x126/0x2f0
[<ffffffff802476fd>] ? default_wake_function+0xd/0x10
[<ffffffff80267106>] ? autoremove_wake_function+0x16/0x40
[<ffffffff8023c99a>] ? __wake_up_common+0x5a/0x90
[<ffffffff8023dece>] ? __wake_up+0x4e/0x70
[<ffffffff80263271>] ? __queue_work+0x41/0x50
[<ffffffff8026331d>] ? queue_work_on+0x4d/0x60
[<ffffffff8026344f>] ? queue_work+0x1f/0x30
[<ffffffff8026350d>] ? queue_delayed_work+0x2d/0x40
[<ffffffffa0373255>] ? wait_for_response+0xd5/0xe0 [ib_mad]
[<ffffffffa04b4e07>] cm_process_work+0x27/0x130 [ib_cm]
[<ffffffffa04b5cf1>] cm_drep_handler+0xf1/0x180 [ib_cm]
[<ffffffffa04b7790>] ? cm_work_handler+0x0/0x1b8 [ib_cm]
[<ffffffffa04b7895>] cm_work_handler+0x105/0x1b8 [ib_cm]
[<ffffffffa04b7790>] ? cm_work_handler+0x0/0x1b8 [ib_cm]
[<ffffffff802628c2>] run_workqueue+0xc2/0x1a0
[<ffffffff80262bcf>] worker_thread+0xaf/0x130
[<ffffffff802670f0>] ? autoremove_wake_function+0x0/0x40
[<ffffffff80262b20>] ? worker_thread+0x0/0x130
[<ffffffff80266cbe>] kthread+0x4e/0x90
[<ffffffff80213c99>] child_rip+0xa/0x11
[<ffffffff80266c70>] ? kthread+0x0/0x90
[<ffffffff80213c8f>] ? child_rip+0x0/0x11
Code: 00 00 00 00 00 55 48 89 e5 e8 a7 cc d9 df 83 7f 28 78 75 17 80 67 2d f7 c7 47 28 0d 00 00 00 ba 01 00 00 00 e8 8c fc ff ff c9 c3 <0f> 0b eb fe 66 0f 1f 44 00 00 55 48 89 e5 41 54 53 e8 74 cc d9
RIP [<ffffffffa04759f6>] scst_tgt_cmd_done+0x26/0x30 [scst]
RSP <ffff88039ad27b50>
---[ end trace a7f20725e9471e16 ]---
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 18:58:55 +00:00
Vladislav Bolkhovitin
cb7a5d9ee0
- More web fixes from Daniel Fernandes <dfernandes1978@hotmail.com>
...
- sponsorship.html removed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 12:03:06 +00:00
Vladislav Bolkhovitin
9a57947a5e
Patch from Mark Buechler <mark.buechler@gmail.com> adding io_context patch for 2.6.26 kernel
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 10:33:12 +00:00
Vladislav Bolkhovitin
468e8bab83
Microcosmetics
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 10:30:15 +00:00
Vladislav Bolkhovitin
93950e189a
- Web fixes from Daniel Fernandes <dfernandes1978@hotmail.com> (thanks!)
...
- The comparison page updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-18 10:25:33 +00:00
Mark Buechler
c76190e675
- Remove unused references to handler IOs that don't exist and cleanup the write
...
configuration function to only write vdisk and vcdrom devices. All other devices
are automatically claimed by their handler module. I'm not sure how this will work
with devices we wish to change handlers for.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 21:04:39 +00:00
Mark Buechler
5bf03c83ea
- Add the ability to specify options (ie: READ_ONLY) in assignments in scst.conf.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1109 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 20:32:35 +00:00
Vladislav Bolkhovitin
8de256e7a3
qla2x00t HOWTO updated
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 20:10:11 +00:00
Vladislav Bolkhovitin
7d0cd658eb
Typo fixed
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1107 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 19:58:38 +00:00
Vladislav Bolkhovitin
4e7e7ff6b6
Kernels below 2.6.26 not supported anymore by qla2x00t, sorry.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1106 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 19:57:04 +00:00
Mark Buechler
a32b30de56
- Move a user from one group to another when applying the configuration instead
...
of deleting from one and adding to another the same user.
- Minor fix to readConfig() which wasn't fully allowing for empty groups.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1105 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 18:38:23 +00:00
Vladislav Bolkhovitin
b03c72f55d
Support for 24xx+ QLA chips added to qla2x00t. So far only for 2.6.26+ kernels.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1104 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 17:44:07 +00:00
Mark Buechler
788c769a65
- Added the ability to specify options for -assigndev and -replacedev,
...
mainly READ_ONLY for now.
- Updated module to accept more than one option for assignDeviceToGroup() and
replaceDeviceInGroup().
- Incremented module version number and renamed module directory to reflect it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-17 16:33:24 +00:00
Mark Buechler
c4061f22e2
- Added -moveuser, -renamegroup and -ReplaceDev options and necessary -to argument.
...
- Fixed minor bug in new renameGroup() method in SCST::SCST.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1102 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 19:28:13 +00:00
Mark Buechler
efe48552bc
- Adds read only flag support to assignDeviceToGroup() and
...
replaceDeviceInGroup().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:25:40 +00:00
Mark Buechler
7133b84a7d
- Adds rename_group functionality with renameGroup().
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:14:32 +00:00
Vladislav Bolkhovitin
ab1835aec5
More consistency in TM functions logging.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:08:02 +00:00
Mark Buechler
2afac68fa6
- Added support for new move and replace commands with moveUser()
...
and replaceDeviceInGroup() and increased the min. SCST supported
version to 1.0.2.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1098 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 18:05:06 +00:00
Bart Van Assche
0fd6551230
Replaced kernel versions 2.6.27.32 and 2.6.30.6 by 2.6.27.34 and 2.6.30.7 respectively.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1097 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-16 10:44:38 +00:00
Vladislav Bolkhovitin
41cba1157e
Microcleanup to log TM functions always in decimal.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-15 17:57:16 +00:00
Vladislav Bolkhovitin
bd33476600
Size of external names, like initiator names, increased.
...
Thanks to savik@alumni.technion.ac.il for pointing on it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-14 18:08:18 +00:00
Vladislav Bolkhovitin
5f6db09212
Minor cleanup
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1093 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-14 18:02:11 +00:00
Vladislav Bolkhovitin
e25dd44fad
Small cleanup: don't do anything if on resync_size command size of the device remained the same
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-14 17:47:47 +00:00
Bart Van Assche
4decd55808
- Removed blank lines from kernel log.
...
- When a session is being released, it is now logged why.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-13 19:13:31 +00:00
Bart Van Assche
9d78dc61b7
- Renamed PFX macro to LOG_PFX such that it is recognized by the
...
PRINT_INFO() and related macro's.
- Replaced printk(KERN_INFO PFX and printk(KERN_ERROR PFX by
PRINT_INFO( and PRINT_ERROR( respectively.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1089 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-13 18:15:05 +00:00
Bart Van Assche
663e046df0
Made sure that there is only a single blank line before scsi_end_async() in the output of scripts/generate-kernel-patch.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1088 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-10 18:26:06 +00:00
Bart Van Assche
6f455c9c30
Replaced kernel versions 2.6.27.31 and 2.6.30.5 by 2.6.27.32 and 2.6.30.6 respectively.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1085 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-09 18:30:50 +00:00
Vladislav Bolkhovitin
bd4f1748dd
Maintainer's address added
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1083 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 11:31:48 +00:00
Dotan Barak
596fee74a4
Don't try and stop a kernel thread that hasn't started- this will fix some
...
reported oopses.
Fix residual setting for 21XX/22XX/23XX cards. Oops.
Return at least *some* kind of WWN. Apparently there are still enough
cards floating around that have scrambled NVRAM that this is a problem-
at least for me.
More meaningless format changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1082 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 01:45:52 +00:00
Dotan Barak
72d038f1b6
If we're running newer than 3.0.16 firmware and are in target mode, tell
...
the firmware to not automatically issue a PRLI after a PLOGI. This should
solve the problem of being in N-port topology where we have to issue a PLOGI
which by default is followed by a PRLI, which makes us an illegal target.
This is not the most ideal fix in that it breaks the initiator side of
initiator/target mode for any local topology disks.
Various other meaningless formattting changes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1081 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 01:40:39 +00:00
Dotan Barak
613542b923
Remove obsolete documentation.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1080 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-08 01:36:17 +00:00
Vladislav Bolkhovitin
95032dca33
The patch below fixes occurrences of the following recently introduced
...
checkpatch warning: "do not use assignment in if condition".
Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com >
with some fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1079 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-07 12:09:16 +00:00
Vladislav Bolkhovitin
103f8bb8ec
Microcleanup to combine the vars alltogether
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-07 12:02:47 +00:00
Bart Van Assche
a003cea218
Do not only remove references of SCSI_EXEC_REQ_FIFO_DEFINED / SCST_IO_CONTEXT
...
but also their definition.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1077 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-09-06 12:02:49 +00:00