Commit Graph
241 Commits
Author SHA1 Message Date
Vladislav Bolkhovitin 0e225ebdf4 Patch from Cheng Renquan <crquan@gmail.com>
This is needed to build qla2xxx on top of 2.6.26 and
2.6.27 Linux kernels according this scst-devel mailing list thread,
http://sourceforge.net/mailarchive/message.php?msg_name=1288289831-23405-1-git-send-email-crquan@gmail.com



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2716 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 18:41:28 +00:00
Vladislav Bolkhovitin 972959d11a Patch from Uri Yanai <Uri.Yanai@ngsoft.com> fixing compilation for kernels below 2.6.28
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2659 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 19:34:22 +00:00
Bart Van Assche 8eaff2c061 qla2x00t: Removed trailing whitespace.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2647 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 20:09:31 +00:00
Vladislav Bolkhovitin ba81a8caaf Docs update
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2641 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 14:41:22 +00:00
Vladislav Bolkhovitin e8f65b0336 Long CDBs handling fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2638 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-09 13:14:09 +00:00
Vladislav Bolkhovitin c631f51530 Fixes for sessions deletion
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2637 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 17:08:07 +00:00
Vladislav Bolkhovitin 66cec8e76a Fix problems in marking sessions local
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2635 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 14:18:10 +00:00
Vladislav Bolkhovitin 1903d5e459 Local sessions management made more robust
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2634 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-08 13:21:15 +00:00
Vladislav Bolkhovitin 97b62b57f1 TM handling on 23xx- fixed
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2608 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 19:22:49 +00:00
Vladislav Bolkhovitin 8c33147780 - Node name setting added
- qlini_mode "disabled" parameter handling improved

 - Docs updated



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2607 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-05 18:56:54 +00:00
Vladislav Bolkhovitin ac45e164b6 Logging cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2597 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 19:30:38 +00:00
Vladislav Bolkhovitin f52189609b 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/trunk@2595 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-04 14:37:40 +00:00
Vladislav Bolkhovitin faa63a4c99 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2584 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-03 13:34:34 +00:00
Vladislav Bolkhovitin 0b7ece3340 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/trunk@2583 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-03 13:33:06 +00:00
Vladislav Bolkhovitin b02fc5468e 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/trunk@2582 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-03 13:29:10 +00:00
Vladislav Bolkhovitin 7fbab4729f Revert r2020 to replace it by a better fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2581 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-03 13:21:32 +00:00
Vladislav Bolkhovitin a0c704c8c3 Cleanups and minor locking fix
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-02 19:43:19 +00:00
Bart Van Assche 3667335dca Copied and renamed the 2.6.35 in-tree files (does not build yet!).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2429 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-21 12:20:34 +00:00
Vladislav Bolkhovitin d302ce64ab Patch from Uri Yanai <Uri.Yanai@ngsoft.com> fixing handling of global events in IMMED_NOTIFY handler
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-18 18:59:41 +00:00
Vladislav Bolkhovitin 1af1e674d4 Patch from Dorit Halsadi <Dorit.Halsadi@dothill.com> and Uri Yanai <Uri.Yanai@ngsoft.com> adding NPIV support to the SCST Target driver for Qlogic 24xx/25xx Fibre Channel cards
with minor fixes.

Note: you need NPIV-supporting firmware as well as NPIV-supporting switches to use NPIV.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2408 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-14 18:11:22 +00:00
Vladislav Bolkhovitin b4dfb7cda6 Unsupported (yet) patch making QLA adapters behave in the target mode from the very beginning with description from Bryan Mesich <bryan.mesi
ch@ndsu.edu>.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2360 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-06 18:51:51 +00:00
Bart Van Assche afcaf14667 Further upstream kernel path conversion.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2328 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-10-02 07:23:49 +00:00
Vladislav Bolkhovitin fc2c602429 Cleanup
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2197 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 12:18:39 +00:00
Vladislav Bolkhovitin f284378434 Stay away from buffers overflows with too long firmware and PCI infos
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2134 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-16 14:01:19 +00:00
Vladislav Bolkhovitin 62564bb386 More version updates
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2121 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 22:04:14 +00:00
Vladislav Bolkhovitin 1f5ff3e5ed Change version on 2.1.0-pre1
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2112 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:45:46 +00:00
Vladislav Bolkhovitin d27bbc0d15 Final version and docs update before pushing it into the stable branch
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2090 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-10 14:07:53 +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