Bart Van Assche
ebd3b46c66
ib_srpt: Made sure that no credits are lost because of SCSI task abortion.
...
ib_srpt: Exported req_lim and req_lim_delta values via sysfs because this is convenient for debugging purposes.
(Merged revisions 2686 and 2688 from the trunk.)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2689 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 15:11:11 +00:00
Vladislav Bolkhovitin
eed844a6c2
Merge of the trunk's r2673:
...
scst_alloc() didn't set len of the last sg entry as reported by ido benda <idombd@gmail.com > + set resid_possible for special cases of LUN NOT SUPPORTED
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2674 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-11 19:59:55 +00:00
Vladislav Bolkhovitin
ba6b1df220
Merge with the trunk's r2657:
...
in-tree-patches deleted as not needed
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2658 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 19:31:54 +00:00
Vladislav Bolkhovitin
53d113c04a
Merge of the trunk's r2655:
...
Fix minor Makefile issues
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2656 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 12:38:00 +00:00
Vladislav Bolkhovitin
37f52e6418
Merge of the trunk's r2641:
...
Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2642 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:43:52 +00:00
Vladislav Bolkhovitin
670f9aab84
Merge of the trunk's r2639:
...
Ignore out of SN range commands as requested by iSCSI RFC.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2640 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:30:44 +00:00
Vladislav Bolkhovitin
9beae31839
Merge of the trunk's r2635:
...
Fix problems in marking sessions local
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2636 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 14:25:58 +00:00
Vladislav Bolkhovitin
47a62c75f5
Merge of the trunk's r2608:
...
TM handling on 23xx- fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2609 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 19:24:47 +00:00
Vladislav Bolkhovitin
80a0c4e095
Merge of the trunk's r2604:
...
Partially remove implicit ordered commands as a nonsense. It will be replaced by a common waiting facility to wait on depending previous commands to complete.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2605 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 11:56:15 +00:00
Vladislav Bolkhovitin
22eb9372bd
Merge of the trunk's r2597:
...
Logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2603 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:51:38 +00:00
Vladislav Bolkhovitin
c4ddff295a
Merge of the trunk's r2595:
...
A bunch of pending qla2x00t fixes:
- Make initiators discovery more robust
- Fix mapped SG leaks
- Docs update
- Cleanups
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2602 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:47:56 +00:00
Vladislav Bolkhovitin
0739a3f7dd
Merge of the trunk's r2584:
...
Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2601 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:36:41 +00:00
Vladislav Bolkhovitin
ea17a3480f
Merge of the trunk's r2583:
...
From 8eca3f39c4b11320787f7b216f63214aee8415a9 Mon Sep 17 00:00:00 2001
From: Andrew Vasquez <andrew.vasquez@qlogic.com >
Date: Thu, 22 Jan 2009 09:45:31 -0800
Subject: [PATCH] [SCSI] qla2xxx: Always serialize mailbox command execution.
Original code would incorrectly bypass serialization if the DPC
thread were performing a big-hammer operation (ISP abort). This
short circuit, though rare, would subsequently stomp on a
secondary thread's mailbox command execution. Found during
ISP81XX testing.
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com >
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2600 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:35:08 +00:00
Vladislav Bolkhovitin
1933ff7845
Merge of the trunk's r2582:
...
Mainline commit 3c01b4f9fbb43fc911acd33ea7a14ea7a4f9866b:
From: Seokmann Ju <seokmann.ju@qlogic.com >
Date: Thu, 22 Jan 2009 09:45:38 -0800
Subject: [PATCH] [SCSI] qla2xxx: Add checks for a valid fcport in dev-loss-tmo/terminate_rport_io callbacks.
Commit f78badb1ae07e7f8b835ab2ea0b456ed3fc4caf4 ([SCSI] fc
transport: pre-emptively terminate i/o upon dev_loss_tmo timeout)
changed the callback semantics of dev_loss_tmo and
terminate_rport_io such that repeated calls could be made. This
could result in the the driver using stale (NULLed-out, in
dev_loss_tmo) data from the rport. Correct this by addint a
simple check to ensure a valid fcport is attached.
Signed-off-by: Seokmann Ju <seokmann.ju@qlogic.com >
Signed-off-by: Andrew Vasquez <andrew.vasquez@qlogic.com >
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2599 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:33:25 +00:00
Vladislav Bolkhovitin
771dc27756
Merge of the trunk's r2581:
...
Revert r2020 to replace it by a better fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:31:35 +00:00
Vladislav Bolkhovitin
4a80d3c0a5
Merge of the trunk's r2580:
...
Let's be safe and alway do barrier
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2594 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 13:55:38 +00:00
Vladislav Bolkhovitin
75766c6bb0
Merge of the trunk's r2578:
...
Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2593 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 13:52:28 +00:00
Vladislav Bolkhovitin
8e65d45291
Merge of the trunk's r2575:
...
Don't return SN errors on IMMEDIATE commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-02 20:13:49 +00:00
Vladislav Bolkhovitin
c6af50247d
Merge of the trunk's r2567:
...
Fixing PRs related flags for some commands as reported by Aleksey Kondratov <alekseyk1@open-e.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2568 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 19:21:56 +00:00
Bart Van Assche
ad81b1b6ea
svn merge -c2494 https://scst.svn.sourceforge.net/svnroot/scst/trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 16:38:28 +00:00
Bart Van Assche
e834d71fcc
svn merge -c2562 https://scst.svn.sourceforge.net/svnroot/scst/trunk .
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2564 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 16:29:28 +00:00
Bart Van Assche
66c9ae7ddc
iscsi_scst builds again on RHEL (svn merge -c2560 https://scst.svn.sourceforge.net/svnroot/scst/trunk ).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-01 15:52:46 +00:00
Vladislav Bolkhovitin
cc0a82c24d
Merge of the trunk's r2486:
...
Fix for Persistent Reservations problem with devices >2TB in size reported by Open-E (Artur Piechocki and Aleksey Kondratov)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-28 18:44:26 +00:00
Vladislav Bolkhovitin
7e4d2ced3d
Merge of the trunk's r2481:
...
Fixes for PR problems reported by Gadi Oxman <gadi.oxman@xtremio.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-27 18:49:25 +00:00
Vladislav Bolkhovitin
1418bac978
Merge of the trunk's r2472:
...
Fix possible crash on access to not existing LUN with CONFIG_SCST_MEASURE_LATENCY enabled reported by ido benda <idombd@gmail.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-26 13:01:04 +00:00
Vladislav Bolkhovitin
192c245e16
Merge of the trunk's revisions 2429, 2430 and 2470:
...
Update for 2.6.36
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-26 12:46:13 +00:00
Bart Van Assche
8ebd2bf6bb
ib_srpt: Merged from trunk (svn merge -r2072:2459 https://scst.svn.sourceforge.net/svnroot/scst/trunk/srpt ).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-25 18:29:44 +00:00
Vladislav Bolkhovitin
5b3780951d
Merge of the trunk's r2462:
...
Let's be safe and always do memory barrier after all *_get().
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-25 13:12:23 +00:00
Vladislav Bolkhovitin
5ace9d78bc
Merge of the trunk's r2422:
...
Fix possible crash on ABORT TASK SET TM command fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2423 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 18:44:17 +00:00
Vladislav Bolkhovitin
671f955c72
Merge of the trunk r2420:
...
scst_pre_parse() must be called before scst_cmd_set_sn() to correctly process implicit HQ and ORDERED commands, so move it to __scst_init_cmd(). As consequence, SCST_CMD_STATE_PRE_PARSE state isn't needed anymore, hence remove it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2421 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 18:31:03 +00:00
Mark Buechler
3261703ee9
Merge scstadmin from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2409 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-14 19:15:46 +00:00
Mark Buechler
aee3ce6fab
Merge scstadmin from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2393 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-11 16:26:20 +00:00
Vladislav Bolkhovitin
95ee9c2077
Merge of the trunk r2373:
...
Fixes 2 iSNS server initialization problems noticed by Tan Eric <Eric.Tan@bdt-cn.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2374 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-08 18:14:38 +00:00
Vladislav Bolkhovitin
557622b30a
Merge of the trunk's r2354:
...
Let's make check for SCST_PR_DIR not global, but per created device, because it's more reliable and flexible.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2355 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 12:28:42 +00:00
Bart Van Assche
0b072d852c
Merged r2328 from the trunk (build fix).
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2329 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 07:28:10 +00:00
Mark Buechler
dc1dc62039
Merge scstadmin from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-30 20:25:12 +00:00
Mark Buechler
78d4cdaf46
Merge scstadmin from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2316 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-30 16:58:38 +00:00
Bart Van Assche
90794afc90
svn merge -c2244 https://scst.svn.sourceforge.net/svnroot/scst/trunk
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2303 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-29 15:22:14 +00:00
Vladislav Bolkhovitin
38241e6af3
Merge of the mainling r2297:
...
Possible buffer overflow in the config load code fixed. Thanks to wk <witold.kowolik@open-e.com > to pointing on it!
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2298 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-28 15:09:04 +00:00
Bart Van Assche
92395b17ba
Merged r2246 and r2267 from trunk: added #include <linux/vmalloc.h> where necessary such that the SCST source code builds on PowerPC systems too.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-25 19:03:17 +00:00
Vladislav Bolkhovitin
33bd34813a
Merge of the trunk's 2274:
...
Remove checking of rel_tgt_id on disabling targets
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2276 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-25 18:42:32 +00:00
Vladislav Bolkhovitin
56ae926937
Merge of the trunk's r2272:
...
Fix possible deadlock on waiting on blocking. As a side effect it leaded to a nice cleanup.
Sorry for merging such not obvious patch here, but the deadlock danger is quite real.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2273 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-25 18:30:53 +00:00
Mark Buechler
958ab88dd7
Merge scstadmin from trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2260 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 20:28:16 +00:00
Mark Buechler
f4f734977d
Merge scstadmin with trunk.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2258 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 20:24:51 +00:00
Vladislav Bolkhovitin
61b6a6a7c4
Merge of the trunk r2250:
...
Update sample scripts to run scstadmin
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2252 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 19:22:53 +00:00
Vladislav Bolkhovitin
6548753cd6
Merge of trunk r2236:
...
Fix for incorrect initialization of conn->read_msg.msg_iovlen. But looks like this value is rather ignored in the TCP stack and read_size used instead, so all worked fine.
Noticed by yue <ooolinux@163.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2237 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 14:43:40 +00:00
Vladislav Bolkhovitin
9f339cd2f1
Merge of trunk r2234:
...
Fix possible crash if expected values not set
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2235 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:46:17 +00:00
Vladislav Bolkhovitin
c01c03a6b9
Merge of trunk r2232:
...
Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2233 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:23:50 +00:00
Vladislav Bolkhovitin
afadb6306a
Marge of trunk r2224:
...
Scstadmin now can create sessions, so update README
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2226 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:59:42 +00:00
Vladislav Bolkhovitin
8c8c62a118
Menrge of trunk r2219:
...
Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2225 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:57:59 +00:00