Commit Graph

1259 Commits

Author SHA1 Message Date
Vladislav Bolkhovitin
4e65d67680 Fix bug preventing pass-through dev handlers be loaded if SCSI_EXEC_REQ_FIFO_DEFINED not defined.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1349 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-19 10:22:25 +00:00
Vladislav Bolkhovitin
96e4adfb03 Minor web updates and fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1348 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-18 13:57:58 +00:00
Bart Van Assche
e9e8884f41 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1347 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-18 07:52:12 +00:00
Bart Van Assche
b9402438ff Updated to do list once more.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1346 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-18 07:22:30 +00:00
Bart Van Assche
b01b495735 Updated to do list.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1345 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 20:03:35 +00:00
Bart Van Assche
a57d10033f Added more comments.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1344 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 18:01:16 +00:00
Bart Van Assche
9d65e4fe05 Removed a BUILD_BUG_ON() statement that was too restrictive.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1343 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 18:00:23 +00:00
Vladislav Bolkhovitin
ef9469cefb Fix for recently introduced incorrectly set expected data direction
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1342 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 13:53:03 +00:00
Vladislav Bolkhovitin
c3ad1a5075 Minor compiler and checkpatch fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1341 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 12:59:49 +00:00
Vladislav Bolkhovitin
42d9b02d49 Web fixes from Daniel Fernandes <dfernandes1978@hotmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1340 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-17 12:10:10 +00:00
Vladislav Bolkhovitin
ed22024642 Patch from Daniel Fernandes <dfernandes1978@hotmail.com>:
- Fixes wrong writing in using CompanySubTitles Class
 - Fixes lost link for SCST Local in Pages scst_admin.html and handler_fileio_tgt.html
 - Fixes Users.html page in Subtitles( I increase a little page space, and reduce a little font size)



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1339 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-16 18:19:46 +00:00
Vladislav Bolkhovitin
3261614731 - Fix for memory allocation for scst_user and locally handled commands
- Execution context cleanups and fixes



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1338 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-16 18:05:10 +00:00
Vladislav Bolkhovitin
760b190ba2 Users page made logs based
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1337 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-16 17:22:27 +00:00
Bart Van Assche
9955ef7627 Since the expression "sizeof(*sense) + sizeof(*sense) % 4" did not make
sense, replaced this expression by "sizeof(*sense)" and a BUILD_BUG_ON()
statement that verifies that sizeof(*sense) is a multiple of four. Should
the first expression have been "roundup(sizeof(*sense), 4)" ?


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1336 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-15 13:14:40 +00:00
Bart Van Assche
bcec50e065 - Small performance improvement: ib_dma_sync_for_device() and
ib_dma_sync_for_cpu() calls do now only synchronize the data areas used.
- Removed per-command mutex again because it's not a full solution with
  regard to avoiding races between module unloading / IB error handling and
  SCST's command handling.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1335 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-15 13:11:46 +00:00
Bart Van Assche
0a657760e0 Fixed a (false positive) compiler warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1334 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-14 19:30:27 +00:00
Bart Van Assche
4afbe006a5 Updated test instructions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1333 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-11 18:56:05 +00:00
Bart Van Assche
5c208ca261 - Fixed races between command abortion code and regular command processing
code.
- Fixed the bug that new commands could be queued for a channel that was
  being closed.
- Bug fix: ib_dma_unmap_sg() is now called by srpt_xmit_response() when
  aborting commands.
- Changed default value of the kernel module parameter 'thread' from zero
  to one because using thread=0 can cause the Linux and the OFED SRP
  initiator to lock up -- see also
  http://bugzilla.kernel.org/show_bug.cgi?id=14235 and
  https://bugs.openfabrics.org/show_bug.cgi?id=1745.
- Made disconnect logging more detailed -- added cm_id in output.
- Changed argument type of second argument of srpt_release_channel() from
  int to bool.
- Eliminated srpt_abort_scst_cmd's 'tell_initiator' argument because this
  argument always has the same value (i.e. true).
- Simplified abortion of commands in state SRPT_STATE_NEW. Simplified
  implementation of srpt_on_free_cmd().


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1332 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-11 18:44:05 +00:00
Bart Van Assche
b2223e664b Updated kernel versions 2.6.27.38 and 2.6.31.5 to 2.6.28.39 and 2.6.31.6 respectively.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1331 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-10 11:59:00 +00:00
Vladislav Bolkhovitin
cf54a13171 Web fixes from Daniel Fernandes <dfernandes1978@hotmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1330 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-09 20:05:52 +00:00
Vladislav Bolkhovitin
e63a865d23 BIDI fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1329 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-09 13:53:57 +00:00
Bart Van Assche
a6e1b94e5b - Changed default maximum control message size from 996 to 4096 bytes.
As a result, the maximum number of sg list elements that an initiator
  can pass in one message increased from 58 to 251.
- Added kernel module parameter srp_max_message_size, which allows to
  specify the maximum size of SRP control messages.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1328 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-07 11:56:51 +00:00
Bart Van Assche
2d083413a1 Fixed a sparse error that was introduced in r1324.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1327 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-07 10:15:23 +00:00
Vladislav Bolkhovitin
eaed144f79 Fix for user space part of the iSCSI target, which refused connections in the procfs mode.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1326 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 19:28:27 +00:00
Vladislav Bolkhovitin
b5ea323927 Logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1325 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 19:05:09 +00:00
Vladislav Bolkhovitin
6153a079a3 iSCSI target sysfs "enabled" attribute implemented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1324 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 18:41:37 +00:00
Vladislav Bolkhovitin
1ef8de232b kobject tricky lifetime races fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1323 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 18:39:52 +00:00
Vladislav Bolkhovitin
76390b3d31 Patch from Daniel Fernandes <dfernandes1978@hotmail.com> fixing more Validator errors.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 18:32:39 +00:00
Bart Van Assche
4a72d7efa3 Added command-line option -w.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1321 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 13:17:14 +00:00
Vladislav Bolkhovitin
a3460da98d Data Domain added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1320 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-06 11:55:00 +00:00
Vladislav Bolkhovitin
1ca3ccd06f Patch from Daniel Fernandes <dfernandes1978@hotmail.com> fixing issues discovered by validator.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1319 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-05 14:34:38 +00:00
Vladislav Bolkhovitin
df8d5bb882 SVN access changed to trunk/
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1318 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-04 19:44:50 +00:00
Vladislav Bolkhovitin
90aedbc026 Pranah Storage Technologies added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1317 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-04 19:29:11 +00:00
Bart Van Assche
7f1e235150 Added command-line options -m and -M.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1316 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-04 12:52:17 +00:00
Vladislav Bolkhovitin
b92c7d1c6f The patch below converts the #ifndef SYMBOL / #define SYMBOL / #endif symbol
constructs in the SCST source code into one of the following:
* These three lines are removed entirely if the symbol definition is present in
  the Linux 2.6.18 source tree.
* The definition has been made unconditional if the symbol definition is not yet
  present in the 2.6.31 source tree.
* Converted the definition into #if LINUX_VERSION_CODE < KERNEL_VERSION(...) /
  #define SYMBOL / #endif if a definition for the symbol has been added between
  kernel versions 2.6.18 and 2.6.31.

The patch below has been tested by veryfing whether the SCST tree still
compiles on RHEL 5.4 and by verifying the output of the following command:

  for ((i=24;i<=31;i++)); do scripts/run-regression-tests 2.6.$i; done

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>

also MI_REPORT_TARGET_PGS removed as not used.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1315 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-03 18:56:19 +00:00
Vladislav Bolkhovitin
02bdb07c7e Fixes possible crash, caused by q2t_sess_work_fn() called on several CPUs at time. Reported by Gal Rosen <galr@storwize.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1314 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-03 18:44:09 +00:00
Bart Van Assche
cdbd65daeb Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1313 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-03 07:46:39 +00:00
Bart Van Assche
d5cd0c893a - Fixed uninitialized variable read that was introduced in r1307.
- Introduced new kernel module parameter srp_max_rdma_size. This parameter
  allows to configure the maximum size of SRP RDMA transfers.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1312 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-02 19:45:45 +00:00
Vladislav Bolkhovitin
2d25617396 Disable inlining in the debug build
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1310 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-02 18:37:53 +00:00
Vladislav Bolkhovitin
3af8bc9a4c Various sysfs related fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1309 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-02 18:07:54 +00:00
Bart Van Assche
b9f64a7c61 - Fixed a bug introduced in the previous commit.
- Added more debug tracing related to command abortion.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1308 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-01 20:11:30 +00:00
Bart Van Assche
c9f49128bb Fixed the following issues found by Vladislav Bolkhovitin via source reading:
- Inserted tests such that ib_dma_unmap_sg() is never called with a NULL
  second argument.
- Fixed race conditions triggered by ioctx->state manipulations.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1307 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-11-01 17:01:08 +00:00
Bart Van Assche
b9a0eb9386 Updates for the OFED 1.5 + kernel 2.6.30 combination.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1306 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-31 13:06:39 +00:00
Vladislav Bolkhovitin
977a20ccba ISCSI target sysfs implementation, except "enabled" attribute.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1305 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-30 20:15:38 +00:00
Vladislav Bolkhovitin
10fa35de3f - DataCrunch Company added
- Cosmetics



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1304 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-30 18:36:16 +00:00
Bart Van Assche
ec836491e4 Should have been included in the previous commit.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1303 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 19:42:53 +00:00
Vladislav Bolkhovitin
831942d577 The patch below fixes two occurrences of the following sparse warning:
warning: incorrect type in argument 2 (different address spaces)

The patch below has been tested by verifying the output of the following
command: scripts/run-regression-tests 2.6.31.5

Signed-off-by: Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1302 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 19:29:22 +00:00
Vladislav Bolkhovitin
3c93276d8f Cosmetics.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1301 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 19:27:14 +00:00
Vladislav Bolkhovitin
031ea81359 Fix for the wrong mcmd state assignment if scst_mgmt_translate_lun() returns >0 because of suspending. Found by Gilad / <gilad.public2@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1300 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 19:18:09 +00:00
Bart Van Assche
eb46362a7b Added more debug code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1299 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-10-29 18:56:23 +00:00