Commit Graph

2015 Commits

Author SHA1 Message Date
Bart Van Assche
3ce2f9446c Corrected feedback e-mail address (merged r3112 and r3113 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3114 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 16:25:23 +00:00
Bart Van Assche
5c4c0defea Merged r3053 and r3096 from the trunk (iSCSI how-to updates).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3111 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-16 15:46:06 +00:00
Vladislav Bolkhovitin
07ab8e7e3f Merge of the trunk's r3094:
Fix wrong last_len computation reported by ido benda <idombd@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3095 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-15 16:47:08 +00:00
Bart Van Assche
53d401ac36 Don't read uninitialized variables (was introduced in r2868).
(Merged r3030 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@3031 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-12 12:44:24 +00:00
Bart Van Assche
f903a7896e ib_srpt: Handle iWARP devices graciously.
(Merged r2950, 2951 and 2963 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2964 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 17:04:05 +00:00
Bart Van Assche
99e1368490 Fixed a bug that could cause scstadmin -write_config to generate an invalid
configuration file, e.g.
...
               GROUP a         }
...

Reported-by: Frank Zago <fzago@systemfabricworks.com>

(Merged r2952 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2953 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-07 09:38:23 +00:00
Bart Van Assche
e6fb3b2a1d scst/scst_vdisk: Made error handling in bi_end_io function IRQ-safe since
bi_end_io functions must be IRQ-safe.

A quote from a discussion between Alan Cox, Mikulas Patocka and Jens Axboe
(http://lkml.org/lkml/2008/7/2/69):

> >Right, that wont work of course. Completions are typically done through
> >a softirq, so it is not currently done with hard interrupts disabled.
>
> I thought, from hardirq - that's what IDE is doing. And they are called
> with interrupts disabled (maybe unless you specify unmaskirq, which is not
> default). What block driver does completions with softirq? ... and why?

The key word is 'typically', the old IDE driver really isn't used very
much. The SCSI layer and eg cciss uses the block layer softirq
completions, so that is what 99% of the uses will be.

The patch itself was provided by Arne Redlich.

(Merged r2913 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2915 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-03 11:44:38 +00:00
Bart Van Assche
55794571db ib_srpt: Pass correct atomic context information to scst_rx_cmd().
(Merged r2912 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2914 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-03 11:43:37 +00:00
Vladislav Bolkhovitin
ddc2387ec5 Merge of the trunk's r2860:
This patch fixes a class of race conditions in the ..._sysfs_del()
functions: the kobject_put() calls should come after all kobject_del() calls
because as long as the last kobject_del() call hasn't been invoked, a sysfs
.show() or .store() callback may still be in progress that needs one of
these kobjects.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2869 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-29 17:57:19 +00:00
Vladislav Bolkhovitin
ed2dc7bdaf Merge of the trunk's r2867:
Fix rarely possible race between scst_free_session() and scst_check_reassign_sess()



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-29 17:14:55 +00:00
Vladislav Bolkhovitin
c1f5c42fa4 Merge of the trunk's r2840:
Fix memory leak in __blk_rq_map_kern_sg() reported by "Hauser, Stefan" <stefan.hauser@bdt.de>



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2841 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-26 15:12:54 +00:00
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
53aeecee1b Merge of the trunk's r2725:
Max_sectors related error made more clear



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2726 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-17 12:51:32 +00:00
Bart Van Assche
018e5db220 ib_srpt: Made instructions in the documentation independent of the scstadmin version.
(Merged r2717 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2718 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 19:20:56 +00:00
Bart Van Assche
9d7859a04a ib_srpt: Made sure that accessing sysfs entries during target creation is harmle
ss.
(Merged r2703 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2714 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-16 11:33:37 +00:00
Mark Buechler
b4d9a93a0c Merge scstadmin from trunk.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2699 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-14 03:05:48 +00:00
Bart Van Assche
d82145649d ib_srpt: Builds again on RHEL 5 (disable_proc; merged r2695 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2697 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 22:30:40 +00:00
Bart Van Assche
7ea0f52811 ib_srpt: Converted req_lim and req_lim_delta from device-specific attributes into session-specific attributes.
(Merged r2692 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2693 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:32:33 +00:00
Bart Van Assche
bab68da2dd iscsi-scst: Fixed a compiler warning in the user space code (merged r2107 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.0.0.x@2690 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 15:49:29 +00:00
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