Commit Graph

902 Commits

Author SHA1 Message Date
Bart Van Assche
b780be7a7b Various improvements:
- Display a clear warning if the user running this script does not have
  sufficient privileges to drop the VM caches.
- Made sure that header and data columns are aligned if dd reports an
  error, e.g. when trying to perform direct I/O on a device that does
  not support direct I/O.
- Made sure that header and data columns are aligned when running a
  read-only test (-r).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@961 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-18 11:55:59 +00:00
Vladislav Bolkhovitin
3ec348004f Fixes race on a scst_user device cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@958 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-17 10:42:32 +00:00
Bart Van Assche
29da0878e3 Added support for partial evaluation of && and || expressions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@957 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-15 15:55:20 +00:00
Vladislav Bolkhovitin
dd235af55c Fixes possible crash if sgv pools destroyed too early.
Reported by Smadar Gonen <smadar.gn@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@955 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 16:56:07 +00:00
Vladislav Bolkhovitin
d29bd7bc2f Updated version of scsi_exec_async() with important fixes. Particularly:
- A bunch of memory corruptions was fixed
 - For cases if scst_exec_req_fifo-2.6.30+.patch not applied, implementation from the patch was added to scst_lib.c. So, now for 2.6.30+ kernels scst_exec_req_fifo-2.6.X.patch is optional



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 15:39:57 +00:00
Vladislav Bolkhovitin
f68bcf7b23 On ppc64, gcc 4.4 spews lots of..
drivers/scsi/qla2xxx/qla_def.h:1485:7: warning: "__LITTLE_ENDIAN" is not defined

Signed-off-by: Dave Jones <davej@redhat.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@952 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 11:06:17 +00:00
Vladislav Bolkhovitin
b12dbb01cc Web fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@951 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-14 10:50:18 +00:00
Vladislav Bolkhovitin
dd0e9cfa90 Minor web fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@950 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-13 11:59:25 +00:00
Vladislav Bolkhovitin
a86fe7bf80 Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@949 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-13 11:37:28 +00:00
Vladislav Bolkhovitin
d29b6e4f63 The patch below fixes the following checkpatch complaint:
ERROR: return is not a function, parentheses are not required
A side effect of this patch is that it makes sure that the return value of
is_report_sg_limitation() is either 0 or 1, and no other integer value.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@948 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-10 18:21:11 +00:00
Bart Van Assche
e564749845 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@947 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-10 12:10:41 +00:00
Vladislav Bolkhovitin
87f2720490 Removes unneeded mutex_lock(&scst_mutex), which can't be done on atomic or SIRQ context
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@946 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-10 11:56:51 +00:00
Vladislav Bolkhovitin
63b86adb27 Fixes wrong usage of parent request's fields in the response.
Reported by Erez Zilber <erezzi.list@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@945 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 18:38:54 +00:00
Vladislav Bolkhovitin
e0fed3bef6 Adds export of blk_rq_unmap_kern_sg(), which is needed if SCSI built as a module.
Noticed by Bart Van Assche <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@944 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 17:48:28 +00:00
Bart Van Assche
950731c2e8 Simplified and generalized code for processing in-tree kernel patches.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@943 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 07:01:57 +00:00
Bart Van Assche
3a369e462d Whitespace-only change: fixed an error reported by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@942 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 07:00:57 +00:00
Bart Van Assche
901e476100 Whitespace-only changes: fixed two errors reported by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@941 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-09 06:29:58 +00:00
Bart Van Assche
88670dbee9 Added 2.6.30.1 kernel.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@939 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-08 17:51:24 +00:00
Vladislav Bolkhovitin
37ba91d275 Update for 2.6.30
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@938 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-08 17:27:30 +00:00
Vladislav Bolkhovitin
1d672afe89 Emulex related web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@937 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-08 17:11:41 +00:00
Vladislav Bolkhovitin
4ab6ce4c5a More web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@936 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-08 11:54:44 +00:00
Vladislav Bolkhovitin
6e22e39cfa Web updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@935 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-08 11:49:55 +00:00
Dotan Barak
7426cbb244 Only use LOAD_RISC_RAM_EXTENDED if you have to. This just might
fix some of the 24XX and 23XX startup problems that have been
reported but are hard to predictably reproduce.

Do some minor sync with the mainline.




git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@934 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-07 17:05:06 +00:00
Bart Van Assche
6947c6168e Added command-line option -t, which allows to drop the caches of the target too. Added dd flag conv=notrunc to write performance tests, which makes running blockdev-perftest on files instead of devices a lot easier.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@933 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-06 17:43:47 +00:00
Bart Van Assche
ed81fdc037 Fixed a bug that was introduced in the previous revision: the script entered an infinite loop when the size specified through -s was smaller than 64MB.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@932 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-03 19:54:09 +00:00
Bart Van Assche
2de35d6ad4 Fixed the following issue reported by lockdep:
------------[ cut here ]------------
WARNING: at kernel/lockdep.c:2197 trace_hardirqs_on_caller+0x14c/0x1b0()
Call Trace:
 <IRQ>
 [<ffffffff8024636f>] warn_slowpath+0xaf/0x110
 [<ffffffff8026e1be>] ? check_usage_forwards+0x5e/0xc0
 [<ffffffff8026e818>] ? mark_lock+0x538/0xcc0
 [<ffffffff802ccfc1>] ? cache_alloc_refill+0x191/0x2b0
 [<ffffffff804ee62b>] ? _spin_unlock_irq+0x2b/0x40
 [<ffffffff8026f23c>] trace_hardirqs_on_caller+0x14c/0x1b0
 [<ffffffff8026f2ad>] trace_hardirqs_on+0xd/0x10
 [<ffffffff804ee62b>] _spin_unlock_irq+0x2b/0x40
 [<ffffffffa0657711>] srpt_handle_new_iu+0x2f1/0x630 [ib_srpt]
 [<ffffffffa0657bab>] srpt_completion+0x15b/0x300 [ib_srpt]
 [<ffffffffa04321f2>] mlx4_ib_cq_comp+0x12/0x20 [mlx4_ib]
 [<ffffffffa01f42aa>] mlx4_cq_completion+0x3a/0x80 [mlx4_core]
 [<ffffffffa01f5585>] mlx4_eq_int+0x295/0x2a0 [mlx4_core]
 [<ffffffffa01f561f>] mlx4_msi_x_interrupt+0xf/0x20 [mlx4_core]
 [<ffffffff80288565>] handle_IRQ_event+0x35/0x70
 [<ffffffff8028a144>] handle_edge_irq+0xb4/0x150
 [<ffffffff8020eb71>] do_IRQ+0x81/0x110
 [<ffffffff8020ced3>] ret_from_intr+0x0/0xf
 <EOI>
 [<ffffffff803b1a88>] ? cfb_imageblit+0x578/0x5a0
 [<ffffffff803aaf09>] ? bit_putcs+0x3d9/0x6a0
 [<ffffffff8026f252>] ? trace_hardirqs_on_caller+0x162/0x1b0
 [<ffffffff8026f2ad>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff804eb425>] ? thread_return+0x3d/0x928
 [<ffffffff803ab49b>] ? soft_cursor+0x1ab/0x220
 [<ffffffff803aaac7>] ? bit_cursor+0x647/0x6b0
 [<ffffffff803a4a9b>] ? fbcon_putcs+0x1cb/0x320
 [<ffffffff803aab30>] ? bit_putcs+0x0/0x6a0
 [<ffffffff803a7506>] ? fbcon_redraw+0x166/0x1d0
 [<ffffffff803a7770>] ? fbcon_scroll+0x200/0xd50
 [<ffffffff803f7af0>] ? scrup+0x100/0x110
 [<ffffffff803f7c7d>] ? lf+0x6d/0x70
 [<ffffffff803fbb1d>] ? do_con_write+0x9dd/0x2300
 [<ffffffff8026eff6>] ? mark_held_locks+0x56/0xa0
 [<ffffffff8026f252>] ? trace_hardirqs_on_caller+0x162/0x1b0
 [<ffffffff803fd499>] ? con_write+0x19/0x30
 [<ffffffff803ea683>] ? n_tty_write+0x383/0x480
 [<ffffffff8026f2ad>] ? trace_hardirqs_on+0xd/0x10
 [<ffffffff8023d7d0>] ? default_wake_function+0x0/0x10
 [<ffffffff803e76f4>] ? tty_write+0x1b4/0x280
 [<ffffffff803ea300>] ? n_tty_write+0x0/0x480
 [<ffffffff802d312b>] ? vfs_write+0xcb/0x170
 [<ffffffff802d32c0>] ? sys_write+0x50/0x90
 [<ffffffff8020c51b>] ? system_call_fastpath+0x16/0x1b
 ---[ end trace 954f4d9b9b9cdecc ]---


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@931 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-03 19:15:15 +00:00
Bart Van Assche
42db21ebba Updated kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@930 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-03 10:30:08 +00:00
Bart Van Assche
41958a0723 Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-07-01 10:47:33 +00:00
Vladislav Bolkhovitin
fb0256ba8a Small performance optimization: wake up IO/processing threads in LIFO order.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-30 16:13:48 +00:00
Vladislav Bolkhovitin
700eb30c9c Backported versions of the context readahead patch http://lkml.org/lkml/2009/4/12/9, which improve performance of Linux read-ahead algorithm.
Thanks to Wu Fengguang for backporting!



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-30 10:45:48 +00:00
Bart Van Assche
23e57ce05d Compiles now against vanilla 2.6.18 kernel headers.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@926 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 19:00:10 +00:00
Vladislav Bolkhovitin
52c786d105 Patch from Klaus Hochlehnert <Mailings@kh-dev.de>:
Here's the readahead patch for Ubuntu 8.04 - 2.6.24 kernel



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 18:11:58 +00:00
Bart Van Assche
9cc47f781a Ported from bash to sh and from GNU awk to POSIX awk. Runs now correctly on an unmodified Debian or Ubuntu system.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@924 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-29 17:55:32 +00:00
Richard Sharpe
dc78e8a39c Add some conditional code to handle kernel versions less that 2.6.25 that
can send a request as a non scatterlist. If we get one, we create a single
element scatterlist and hand that on to SCST. 

This costs some extra space in the structure I use to keep track of requests
and the done function, but only on those versions for which it is possible.
For real kernels it is scatterlists all the way down young man.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@922 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-26 00:54:57 +00:00
Richard Sharpe
6f5bc12172 Remove an ugly hack that was left in just in case. It has been confirmed to
be not needed.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-24 23:10:53 +00:00
Vladislav Bolkhovitin
496aa824f4 Cleanup of use of READ ONLY flag
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-24 12:40:28 +00:00
Stanislaw Gruszka
25d4acd35f Fix compilation on linux kernels 2.6.28, 29 and 30.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-23 17:29:30 +00:00
Vladislav Bolkhovitin
cc3453f142 Cleanup: sess->shutdown_compl made on stack
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-23 12:15:49 +00:00
Vladislav Bolkhovitin
cf296ba80c Fix possible crash in scst_copy_sg()
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-19 16:32:26 +00:00
Bart Van Assche
7084cac82e Display which kernel headers are used during compilation of the SRP target driver.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-18 18:35:05 +00:00
Andy Yan
be0eb86e2f 1. Fixed deadlock issue.
2. Update code to support adaptable feature set according chip type.
3. Add support new B0 chip of 9480.
4. Add change log file and README

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-18 09:12:44 +00:00
Vladislav Bolkhovitin
b81357d452 scstadmin docs improved
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 17:28:05 +00:00
Vladislav Bolkhovitin
8bbdf3949f A bunch of minor changes:
- Logging improved
 - #warning about io_context patched for pre-2.6.27 kernels improved
 - Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 17:22:17 +00:00
Vladislav Bolkhovitin
0d445511f8 WEB updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-17 10:39:15 +00:00
Vladislav Bolkhovitin
d1470f9526 Some time ago it became clear that some SCST users are using kernel 2.6.23. So
it makes sense to run the nightly build also for kernel 2.6.23. But doing so
is only possible with the attached two files present in the SCST tree.
Except for the kernel version these patches are identical to the corresponding
patches for the 2.6.24 kernel.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 19:36:11 +00:00
Bart Van Assche
f9084ffb54 Updated kernel version 2.6.29.4 to 2.6.29.5.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 15:31:04 +00:00
Bart Van Assche
6a80e5441e Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@905 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 06:29:04 +00:00
Bart Van Assche
1593c39a80 Removed trailing whitespace from the newly added lines in the readahead* patches.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-16 06:28:06 +00:00
Bart Van Assche
992bff5645 Added readahead-${kernel_version}.patch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 19:23:06 +00:00
Bart Van Assche
5ae810ec2c Added more kernel versions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@902 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2009-06-15 19:08:42 +00:00