Commit Graph
229 Commits
Author SHA1 Message Date
Vladislav Bolkhovitin 5155b4561c Merge of the trunk's r2744:
Fix compilation if target mode support disabled



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 19:50:57 +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 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 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 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 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
Vladislav Bolkhovitin 01d9bde71a Merge of trunk r2197:
Cleanup



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2198 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 12:26:36 +00:00
Vladislav Bolkhovitin d7e508e226 Merge of trunk r2134:
Stay away from buffers overflows with too long firmware and PCI infos



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2135 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 14:04:14 +00:00
Vladislav Bolkhovitin 5c7f79d3cc 2.0.0.x stable branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2091 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 14:16:00 +00:00
Bart Van Assche 5b33692678 More upstream include path conversions.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2076 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-09 15:27:54 +00:00
Bart Van Assche e302c2f306 Fixed a checkpatch complaint about trailing whitespace. This issue was introduced in r2060.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-07 07:07:21 +00:00
Vladislav Bolkhovitin c66ae1850e - get_transport_version() function changed to get target on entry
- transport versions propageted to user space handlers



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2061 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 21:45:48 +00:00
Vladislav Bolkhovitin 961d59ff40 - Version descriptors added
- Multi-transport support added to scst_local
 - Sysfs attributes "version" and "trace_level" added to scst_local



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2060 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-06 21:21:49 +00:00
Vladislav Bolkhovitin d36e8ba654 Make sysfs default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2041 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:47:51 +00:00
Vladislav Bolkhovitin 716107a964 Docs updates before making the sys interface default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2039 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-03 16:38:19 +00:00
Vladislav Bolkhovitin 83945bde9c Fixes crash with certain topology setups. Reported and tested by Timm Essigke <Timm.Essigke@uni-bayreuth.de>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2020 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-30 10:30:17 +00:00
Vladislav Bolkhovitin 7f042fc37b Missed chuncks for 2.6.35 update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2019 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-28 16:07:11 +00:00
Vladislav Bolkhovitin f6f3e8f03e Fix a minor typo noticed by Timm Essigke <Timm.Essigke@uni-bayreuth.de>
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2000 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-25 19:19:20 +00:00
Vladislav Bolkhovitin 1607d12c9c Sysfs cleanups and fixes, part 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1962 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-20 15:38:21 +00:00
Bart Van Assche 7b839ceaf7 Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1916 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-08-03 15:33:45 +00:00
Vladislav Bolkhovitin 891c7d5b03 Fix BUG while enabling target mode remote port disappear:
In case if ELS LOGO command received on the target port,
the firmware can notify the driver about it in 3 different ways,
which handled differently by the driver (it doesn't clear when it use each way):
1. Immediate notify of login-affecting ELS command received (status code 0x46).
   The target driver terminate all commands received for the specified initiator
   (N_Port handle).
2. Asynchroneus event of port update.
   The target driver only print message, and in remark it's written that
   /* .mark_all_devices_lost() is handled by the initiator driver */
3. Immediate notify of port logged out (status code 0x29).
   The target driver terminate all commands received for the specified initiator
   (N_Port handle), and also mark all devices as lost.

In 1 and 2 everthing is OK. In 3 the target driver mark all devices as lost,
but never retrigger rescanning.

There are 2 solutions:
1. Not marking the devices as lost base on written in the async event case, and
   also base on the spec which says to only terminate all commands.
2. Mark all devices as lost and retrigger rescanning.

1 was implemented; delete all calls to mark_all_devices_lost() in qla2x00t.c, and
unexport symbol of this function in qla_os.c

Signed-off-by: Gal Rosen <galr@storwize.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1844 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-20 17:51:19 +00:00
Vladislav Bolkhovitin 6527947abb Fix "‘wrap’ may be used uninitialized" warning
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1816 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-07-13 12:24:13 +00:00
Vladislav Bolkhovitin 07b012ca56 [PATCH] Session reference count logic error in Qlogic target
When double session is found in q2t_create_sess the session object is updated, 
but after exiting from the function, if the session is not NULL the reference 
counter is decrement, become zero and then the session is deleted. 
As done while making a local session we need here to increment the reference 
count by calling to q2t_sess_get, because at exiting we call to q2t_sess_put. 
 
Signed-off-by: Gal Rosen <galr@storwize.com> 



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1798 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-29 10:33:41 +00:00
Vladislav Bolkhovitin eb16bf9163 Implement qlini_mode qla2xxx module parameter with ini_mode_force_reverse sysfs attribute instead of CONFIG_SCSI_QLA2XXX_TARGET_DISABLE_INI_MODE compile-time option for better flexibility.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1781 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-24 18:03:27 +00:00
Vladislav Bolkhovitin 78edc5afb9 Various cleanups and fixes after some errors injection tests. Particularly:
- ISCSI preliminary completed commands handling fixes
 - Write residuals cleanups and fixes
 - Interface to handle residuals and received from initiators data changed
 - BIDI cleanups and fixes.
 - All BIDI IN fields and functions renamed to OUT to be in line with the in-kernel convention

+ 

Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1780 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-23 13:57:35 +00:00
Bart Van Assche ca97893240 Fixed checkpatch complaints about whitespace and one sparse warning.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1745 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-05 16:44:27 +00:00
Vladislav Bolkhovitin bf79920fa1 Version changed to 2.0-rc2
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1744 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 19:46:42 +00:00
Vladislav Bolkhovitin 8c05a7f350 Residuals and write residuals counting fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1742 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 19:43:02 +00:00
Vladislav Bolkhovitin 4bf0fb2871 Make BLOCKIO honor SYNCHRONIZE_CACHE commands
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1738 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-06-04 11:53:29 +00:00
Vladislav Bolkhovitin 417ba22149 Support for Persistent Reservations for qla2x00t added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1729 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-31 18:05:09 +00:00
Bart Van Assche e4a0b97871 Fixed recently introduced whitespace-complaints reported by checkpatch.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 18:47:11 +00:00
Bart Van Assche d3ed16cc1e Added to repository.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 18:20:26 +00:00
Vladislav Bolkhovitin b53e4cb4c1 Merge of the pr branch with additional fixes for problems found during extra testing
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-26 17:46:46 +00:00
Vladislav Bolkhovitin 0c0cfb4408 Pass-through dev handlers docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1709 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-05-24 10:00:22 +00:00
Bart Van Assche c99bd720c8 Removed trailing whitespace because checkpatch complained about it.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1671 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-30 10:49:28 +00:00
Vladislav Bolkhovitin a6270011ec - Fixing case when during SRRs ping-pong between initiator and target HW pending timeout gets triggered and the corresponding command deleted => oops on the next ping-pong turn
- Minor cleanups and fixes



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1662 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-28 16:54:22 +00:00
Vladislav Bolkhovitin 9449c43bc8 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1598 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-08 18:28:39 +00:00
Vladislav Bolkhovitin 4d5aaf047b Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1585 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-04-06 08:57:48 +00:00
Vladislav Bolkhovitin 4e53e166b4 - Some reference leaks fixed
- Updated to compile on pre-2.6.25 kernels
 - Small docs updates



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1570 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-30 11:28:20 +00:00
Vladislav Bolkhovitin a93d5b593e Small cleanups and improvements
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1565 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-26 19:46:41 +00:00
Vladislav Bolkhovitin 08e7c3fba6 Great threads handling and performance improvements:
- io_context not needed anymore

 - Now threads pool can be per session

 - Each device now can have own type of threads pool with own threads count

+ docs updates and some cleanups and minor fixes.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1563 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-25 19:43:41 +00:00
Vladislav Bolkhovitin cdebb360f6 Small web fixes
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1562 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-23 14:08:17 +00:00
Vladislav Bolkhovitin 70615e2dc3 dos2unix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1561 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-19 11:47:42 +00:00
Vladislav Bolkhovitin 1d4d2e85b5 Fix minor mistake
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1560 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-03-19 11:44:39 +00:00