Bart Van Assche
c4cf4c3f5f
Merge branch 'svn-trunk'
2017-05-12 21:23:32 -07:00
Vladislav Bolkhovitin
383ceb0a8e
scst: add module parameter to control the copy manager auto assignment
...
Reported-By: Guru Prasad <gp22online@gmail.com >
Suggested-By: Sebastian Herbszt <herbszt@gmx.de >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7174 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-13 03:30:07 +00:00
Vladislav Bolkhovitin
69feb6696e
fcst: Linux kernel v4.11 build fix
...
Linux kernel v4.11 build fix.
Signed-off-by: Sebastian Herbszt <herbszt@gmx.de >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7173 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-11 04:00:29 +00:00
Vladislav Bolkhovitin
c0758f4699
scst: scst_finish_cmd() not try to left-shift lba of -1
...
Change scst_finish_cmd() so that it does not attempt to left-shift lba when it
is -1 (the error value). Left-shifting of a negative value is undefined in C.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7172 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-11 03:57:04 +00:00
Vladislav Bolkhovitin
db31c1d56b
scst: nolockdep patch for kernel 4.10
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7171 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-11 03:52:51 +00:00
Vladislav Bolkhovitin
3f5c04bec9
qla2x00t: update to kernel 4.10
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7170 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-11 03:51:32 +00:00
Bart Van Assche
92a224a175
Merge branch 'svn-trunk'
2017-05-05 18:57:23 -07:00
Vladislav Bolkhovitin
06503ca3fb
scst: nolockdep patch for kernel 4.9
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7169 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-06 01:31:59 +00:00
Bart Van Assche
c3e5a9326c
Merge branch 'svn-trunk'
2017-05-03 19:58:51 -07:00
Bart Van Assche
82f3e6804f
scst/include/backport.h: Remove an incomplete FC backport
2017-05-03 19:58:06 -07:00
Bart Van Assche
d1ad88a861
scst: Fix build for kernels before v2.6.39
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7168 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-04 02:56:27 +00:00
Bart Van Assche
386cd25f98
scst_lib: Convert a comment into a runtime check
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7167 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-04 02:45:35 +00:00
Bart Van Assche
3abfda9ec0
scstadmin: Fix a few bugs in the regression test code
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7166 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-04 02:36:37 +00:00
Bart Van Assche
62b12fb87d
Merge branch 'svn-trunk'
2017-05-02 17:29:04 -07:00
Bart Van Assche
642744c9fc
Fix spelling of "Ardis Technologies"
...
Reference: http://www.ddpsan.com/support-sales/about-us .
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7165 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 22:32:06 +00:00
Bart Van Assche
b2f00687fd
scripts/generate-kernel-patch: Stop applying the put_page_callback and exec_req_fifo patches
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7164 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 18:32:56 +00:00
Bart Van Assche
50ed8ae2bb
Merge branch 'svn-trunk'
2017-05-02 07:23:11 -07:00
Bart Van Assche
edebe24bab
scst: Fix build for kernels before v2.6.39
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7163 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 14:23:00 +00:00
Bart Van Assche
57b16a2fd8
scst_lib: Fix kernel 2.6.30 build
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7162 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 14:13:15 +00:00
Bart Van Assche
acc573a2bb
scripts: Update kernel download location
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7161 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 14:10:22 +00:00
Bart Van Assche
49f7595c09
Merge branch 'svn-trunk'
2017-05-01 22:30:46 -07:00
Bart Van Assche
7d9994593f
qla2x00t: Convert the non-standard %Lx into %llx
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7160 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 05:28:29 +00:00
Bart Van Assche
e39d23eb29
scst_sysfs: Fix spelling in a source code comment
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7159 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-02 05:18:05 +00:00
Bart Van Assche
51f63954d2
nightly build: Update kernel versions
2017-05-01 19:17:51 -07:00
Bart Van Assche
49048e0e4d
Merge branch 'svn-trunk'
2017-05-01 19:15:25 -07:00
Bart Van Assche
2fcd2f24b0
scst: Kernel v4.12 build fixes
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7158 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-01 21:01:33 +00:00
Bart Van Assche
0c83846917
Surround #include <linux/version.h> with #ifndef INSIDE_KERNEL_TREE / #endif
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7157 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-01 20:26:08 +00:00
Bart Van Assche
2821f808b0
scst_debug: Remove a duplicated #include directive
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7156 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-05-01 20:22:56 +00:00
Bart Van Assche
04dea09c25
Merge branch 'svn-trunk'
2017-04-28 19:49:03 -07:00
Vladislav Bolkhovitin
128d2b20a8
scst: add mutex_lock/unlock around scst_alloc_add_acg()
...
The CONFIG_SCST_PROC build was calling scst_alloc_add_acg() without holding the
scst_mutex.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7155 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-29 01:00:59 +00:00
Vladislav Bolkhovitin
a9dcdfadee
scst: create proc/scst_threads with mode S_IRUGO, not 0
...
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7154 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-29 00:58:55 +00:00
Bart Van Assche
fb89afd27a
Merge branch 'svn-trunk'
2017-04-26 20:31:44 -07:00
Bart Van Assche
909247cb3d
scst: Port to Linux kernel v4.11
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7153 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-27 00:17:22 +00:00
Bart Van Assche
0371382394
scst: Introduce scst_scsi_execute()
...
This patch does not change any functionality but makes it easier
to port SCST to Linux kernel v4.11.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7152 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-26 23:53:11 +00:00
Vladislav Bolkhovitin
33af3ccb46
ql2x00t: howto update
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7151 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 04:15:21 +00:00
Bart Van Assche
bef67e0b50
Merge branch 'svn-trunk'
2017-04-21 21:01:41 -07:00
Vladislav Bolkhovitin
a09440181c
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7150 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:58:24 +00:00
Vladislav Bolkhovitin
4a4d4a1721
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:50:03 +00:00
Vladislav Bolkhovitin
2ce8ce38e4
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7148 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:33:13 +00:00
Vladislav Bolkhovitin
7fcfd8f589
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7147 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:21:07 +00:00
Vladislav Bolkhovitin
68fa7e1a0d
Copyright updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:19:52 +00:00
Vladislav Bolkhovitin
ed19aa2813
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7145 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-22 03:04:34 +00:00
Bart Van Assche
0d8490d10b
Merge branch 'svn-trunk'
2017-04-20 20:10:40 -07:00
Vladislav Bolkhovitin
a8b24ae319
iscsi_scst: conn_lookup() skips any conn already closing
...
This change helped a secondary problem I had under valgrind (due to some other
bug) with initiators timing out and reconnecting their sessions faster than the
threads were getting cleaned up (for one thing, valgrind only ever runs one
thread at a time).
It seems logical that the code in conn_lookup() would want to skip any
connection that's already known closing in this case, for the same reason it
searches the list in reverse. And the dropping connections don't have to drop
in order, so searching in reverse doesn't seem sufficient to avoid finding a
wrong (stale, closing) connection structure.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7144 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 01:36:34 +00:00
Vladislav Bolkhovitin
296f133caf
iscsi-scst: fix ENOMEM path
...
In an error path in iscsi_threads_pool_get(), when a new pool cannot be
allocated, if there is a pool on iscsi_thread_pools_list, it passes that back as
an alternative, so return zero in that case.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7143 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 01:32:07 +00:00
Vladislav Bolkhovitin
0e92843d30
iscsi-scst: reset conn->rx_task in scsi_cmnd_start() for EXTRACHECKS
...
In scsi_cmnd_start() conn->rx_task is intended to be set only during the
call to _stage1_done, but there was no code to reset it. It doesn't
actually matter in execution, but it was a little confusing to wonder
and try to understand why it wasn't reset.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7142 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 01:17:53 +00:00
Vladislav Bolkhovitin
660fb57d3a
scst: set file size for NULLIO in PROCFS build
...
The file size wasn't getting set for NULLIO with /proc support
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7141 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 01:11:37 +00:00
Vladislav Bolkhovitin
82f5ffd255
iscsi-scstd: daemon handle EOF (rc == 0) from nl_fd
...
Daemon now handles receipt of EOF (rc == 0) from nl_fd. Probably this never
happens in a real kernel build, but it does during shutdown in a usermode build
and it seems like it is "generically correct" in either case.
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7140 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 01:04:16 +00:00
Vladislav Bolkhovitin
344387c40e
iscsi-scstd: replace signal() with sigaction()
...
Replace signal() with sigaction() for validity in a multithreaded process
Signed-off-by: David Butterfield <dab21774@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7139 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 01:02:25 +00:00
Vladislav Bolkhovitin
a8336afa4c
iscsi-scst: change local names of ioctl() and open() to not conflict
...
Change local names of ioctl() and open() to not conflict with C library names.
This isn't really a bug in a strictly kernel-resident build, but the change
avoids symbol conflicts with libc when building for usermode.
Signed-off-by: David Butterfield <dab21774@gmail.com >
with some changes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2017-04-21 00:57:10 +00:00