Commit Graph

2923 Commits

Author SHA1 Message Date
Bart Van Assche
baf5c259bc regtests: Add files necessary for Linux kernel 3.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3929 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-17 09:24:12 +00:00
Bart Van Assche
1deb603ee6 regtest: Another update because of the kernel.org directory structure changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3927 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 19:49:44 +00:00
Vladislav Bolkhovitin
57193ecabc Those patches were mistakenly generated for patch -p0. Fix it. Thanks
Bart Van Assche for reporting it.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3926 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 19:21:30 +00:00
Bart Van Assche
50ce1830b9 regtests: Update kernel versions now that kernel.org has been restored.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3925 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 19:05:45 +00:00
Bart Van Assche
dd2d8271dd regtests: Reflect kernel.org directory tree changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3924 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 18:50:24 +00:00
Vladislav Bolkhovitin
95f29de215 Fix incorrect attach_tgt() errors processing in the sysfs build reported by David Pineau <dav.pineau@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3923 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 01:53:27 +00:00
Vladislav Bolkhovitin
6523575472 Fixes reporting to BLOCKIO devices fsync() errors, noticed by Bart Van Assche
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3922 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 00:04:57 +00:00
Vladislav Bolkhovitin
1e547f1aae Fixes possible NULL cmd dereference in vdisk_fsync() noticed by Bart Van
Assche + possible calls of VERIFY commands for BLOCKIO devices



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3921 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-16 00:00:40 +00:00
Bart Van Assche
7ac9532359 ib_srpt: Reduce the I/O overhead slightly
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3920 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-15 19:06:36 +00:00
Bart Van Assche
622d3145f7 ib_srpt: Increase default value of srp_max_req_size from 2116 to 4148 bytes.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3919 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-13 10:04:55 +00:00
Mark Buechler
58bd090c3e Fixed minor config file bug pointed out by Bart Van Assche.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3918 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-11 17:50:08 +00:00
Vladislav Bolkhovitin
851d6c2008 task_mgmt_fn() callback now called under lock and IRQs disabled, so we
need to reschedule to thread during commands unjamming



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3917 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-09 02:47:23 +00:00
Bart Van Assche
cd563e1fb7 ib_srpt: Change one occurrence of WARN_ON() into __WARN().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-08 19:50:31 +00:00
Bart Van Assche
016798ef64 ib_srpt: Make srpt_srq_size writable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-07 20:09:42 +00:00
Bart Van Assche
d393914d3d ib_srpt: Make max_rsp_size writable
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-07 20:04:26 +00:00
Bart Van Assche
aad2d7cb80 ib_srpt: Simplify last WQE processing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3911 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-06 10:35:24 +00:00
Vladislav Bolkhovitin
cf04c8541a Implement building qla2xxx out of the kernel tree. For that
BUILD_2X_MODULE=y should be passed to make. New module named
qla2xxx_scst. Obviously, to have it working, the original qla2xxx should
be either blacklisted, or removed from the target system.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3910 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 22:03:56 +00:00
Vladislav Bolkhovitin
2733acada4 Fix build without CONFIG_SCSI_QLA2XXX_TARGET
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3909 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 21:34:10 +00:00
Bart Van Assche
3f9451bab8 ib_srpt: Make srpt_alloc_ioctx_ring() return NULL instead of a dangling
pointer if allocation fails. Reported by Dan Carpenter
<dan.carpenter@oracle.com> on the linux-rdma@vger.kernel.org mailing list.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3907 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 18:35:37 +00:00
Vladislav Bolkhovitin
137fbb6779 Remove dead target
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3906 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 02:24:35 +00:00
Bart Van Assche
d79d58e467 ib_srpt: Further reduce number of kmalloc() calls per I/O
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3905 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-30 13:41:46 +00:00
Bart Van Assche
75fa117690 ib_srpt: Reduce number of kmalloc() calls per I/O
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3904 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-30 12:33:42 +00:00
Bart Van Assche
4847e48523 ib_srpt: Remove an unused struct member
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3903 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-30 12:29:45 +00:00
Vladislav Bolkhovitin
c95ef014d7 Update for kernel 3.1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3902 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-27 19:11:40 +00:00
Vladislav Bolkhovitin
6fccbdfd9a Fix incorrect handling of jiffies wrap around as pointed out by Bart Van Assche.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3901 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-26 19:32:58 +00:00
Bart Van Assche
05caa249b5 ib_srpt: Avoid a sporadic 160s delay when a session is unregistered or when removing the ib_srpt kernel module during I/O
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-26 17:42:37 +00:00
Bart Van Assche
9ea2e26aaa ib_srpt: Avoid stopping polling too early for IB completions.
This resulted in unnecessary complaints about IB completions not being
received in time when removing the ib_srpt kernel module during I/O. Note:
it is still possible that such complaints occur, but much less frequent.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3899 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-25 18:05:57 +00:00
Vladislav Bolkhovitin
64fad2e6d2 Make usage of scst_suspend_activity() more flexible by making its timeout be explicit
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3898 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-24 22:16:42 +00:00
Bart Van Assche
aa12492349 ib_srpt: Make the error message about rejected login more clear
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3897 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-20 16:59:15 +00:00
Vladislav Bolkhovitin
c8392145fa Reverse r3894, because it is incorrect. There is no order dependency
between CPUs here, so there's no need in the corresponding fence command.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3896 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-11 03:13:18 +00:00
Bart Van Assche
75bfcdfdbe scst_vdisk, blockio: Add write-through (FUA) support.
From: Etienne Dechamps <e-t172@akegroup.org>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3895 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-10 09:23:32 +00:00
Bart Van Assche
16d26a8ba1 scst_vdisk, vdev_sysfs_process_get_filename(): Make sure that dev->dev_unregistering is reread from memory in each loop iteration. Note: the now removed "(volatile bool)" cast did not have any effect.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3894 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-10 08:27:27 +00:00
Bart Van Assche
d9658fcda4 Reran performance measurements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3892 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-08 11:08:55 +00:00
Bart Van Assche
58a2b2ece8 Set executable property
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3891 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 17:15:39 +00:00
Bart Van Assche
74264389cd scst: Add script for rebuilding RHEL / CentOS / Scientific Linux kernel RPMs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3890 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 17:14:23 +00:00
Bart Van Assche
29530f6bf5 srpt/README: Add note about DEVICE.threads_num
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3889 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 16:34:09 +00:00
Bart Van Assche
74e293d282 scst/README: Add a note about how ESX works with t10_dev_id
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3888 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 16:27:25 +00:00
Vladislav Bolkhovitin
3c54b0c18c Prevent reverse order of management commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3887 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 02:11:19 +00:00
Vladislav Bolkhovitin
fdce259c4f Limit max unmap LBA count to device size
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3886 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-05 02:08:51 +00:00
Bart Van Assche
9118d7c71f Nightly build: include the latency measuring code
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3885 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 17:42:50 +00:00
Bart Van Assche
3f97e4c696 scst, latency statistics:
- Use 64 bits instead of 32 for each "processed commands" counter.
- Make sure there is at least one space between adjacent columns.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3884 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 16:38:27 +00:00
Vladislav Bolkhovitin
4ec4d341eb Micro-optimize scst_unpack_lun(): avoid comparing "len" twice with the constant "2".
Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3883 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 02:18:44 +00:00
Vladislav Bolkhovitin
32991d0fd4 Change reporting processed_cmds to unsigned as suggested by ido benda <idombd@gmail.com>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3882 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-28 02:07:50 +00:00
Bart Van Assche
ee2dead009 scst, latency statistics: Introduce timespec_to_ns().
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3879 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-24 14:11:39 +00:00
Bart Van Assche
24a453bc16 ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3877 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:51:19 +00:00
Bart Van Assche
f3425ccf02 ib_srpt: Remove an outdated comment
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3876 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:49:45 +00:00
Bart Van Assche
80a0c069de ib_srpt: Clean up two PRINT_ERROR() statements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3875 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-22 17:49:04 +00:00
Bart Van Assche
ce85be1595 ib_srpt: Remove a superfluous __srpt_close_ch() call
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3872 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 12:23:13 +00:00
Bart Van Assche
1c358f4222 ib_srpt: Fix "rejected SRP_LOGIN_REQ because creating a new RDMA channel failed"
Fix two race conditions that could trigger this failure:
- Completion thread not woken up after channel state change.
- Reception of Last WQE event before the channel queue pair was reset.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3870 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:15:17 +00:00
Bart Van Assche
afe7e9c6ec ib_srpt: Show the state name in debug messages
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:04:10 +00:00