Commit Graph

2661 Commits

Author SHA1 Message Date
Bart Van Assche
bcf7cfa552 ib_srpt: Increase default value of srp_max_req_size from 2116 to 4148 bytes
(merge r3939 from trunk).


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3994 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:49:12 +00:00
Bart Van Assche
c7b3a09c2a scst_local/procfs bug fix: don't include <scst_const.h> before <scst.h> or
SCST_VERSION_STRING will be incorrect because it gets defined before
CONFIG_SCST_PROC is defined. (merge r3489 and r3490 from trunk)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3993 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:42:51 +00:00
Bart Van Assche
bdbcebf0ec Only include <linux/version.h> if necessary (merge r3517 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3992 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:39:40 +00:00
Bart Van Assche
b3c1abf165 Change version number from 2.1.0-pre into 2.2.0-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3988 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:22:15 +00:00
Bart Van Assche
500d36d1eb Change version number from 2.1.0-pre into 2.2.0-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3987 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:18:53 +00:00
Bart Van Assche
3c5d7bab09 Change version number from 2.1.0-pre into 2.2.0-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3986 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:13:03 +00:00
Bart Van Assche
4d470f0534 iscsi-scst/doc/iscsi-scst-howto.txt: Update because of the scstadmin changes (merge r3582 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3985 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:02:31 +00:00
Bart Van Assche
497712d087 Change version number from 2.1.0-pre into 2.2.0-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3984 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 10:01:04 +00:00
Bart Van Assche
ea4de63afc Merge scstadmin from trunk. Hence add support for saving and restoring the ALUA state, unify the qla2x00t/iSCSI-SCST and SCST init scripts, compute the SCST handler kernel module list from /etc/scst.conf and add man pages for scstadmin, /etc/scst.conf and /etc/default/scst. (svn merge -r3389:3982 https://scst.svn.sourceforge.net/svnroot/scst/trunk/scstadmin/Makefile Makefile)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3983 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 09:45:18 +00:00
Bart Van Assche
f9601efb4c Created 2.2 branch as a copy of r3979 of the 2.1 branch
(https://scst.svn.sourceforge.net/svnroot/scst/branches/2.1.0.x).


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@3981 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-15 08:36:01 +00:00
Bart Van Assche
741e29e16b Correct merge information for r3960 (svn merge -c3960 https://scst.svn.sourceforge.net/svnroot/scst/trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3979 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 14:13:14 +00:00
Bart Van Assche
926b0a6159 Add files necessary to run the regression tests against the 3.0 kernel (svn merge -c3783 https://scst.svn.sourceforge.net/svnroot/scst/trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3978 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 14:11:50 +00:00
Bart Van Assche
7812ed3f52 qla2x_tgt: Remove trailing whitespace (svn merge -c3960 https://scst.svn.sourceforge.net/svnroot/scst/trunk/scripts)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3977 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 14:01:23 +00:00
Bart Van Assche
2e1347db27 Undo merging r3736 (svn merge -r3736:3735 https://scst.svn.sourceforge.net/svnroot/scst/trunk/scripts)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3976 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 13:56:43 +00:00
Bart Van Assche
9ca8fb0ba7 svn merge -r3389:3974 https://scst.svn.sourceforge.net/svnroot/scst/trunk/scripts
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3975 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 13:52:02 +00:00
Vladislav Bolkhovitin
26c783ac56 Merged revisions 3950,3958 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3950 | vlnb | 2011-12-01 21:46:33 -0500 (Thu, 01 Dec 2011) | 9 lines
  
  According to SPC-4 in the PERSISTENT RESERVE IN full status descriptor
  the format of byte 13 is defined as follows:
  - The most significant four bits are SCOPE field.
  - The least significant four bits are the TYPE field.
  Make sure that that byte is filled in according to the specification.
  
  BSD-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3958 | vlnb | 2011-12-06 21:56:31 -0500 (Tue, 06 Dec 2011) | 21 lines
  
  We try to build FC SAN on Sun T2 server, FC HBA cards used are
  QLE2560 and QLE2562, the OS is RHEL6.0 with kernel linux-2.6.32,
  scst code version from svn is 3952.
  
  As T2 (SPARC64) is big-endian, which may not be tested sufficently,
  we had to fix some endian swap to make qla2x00t work good on it.
  
  The first fix is in q24_build_ctio_pkt(), loop_id from prm->cmd, which
  was generated by CPU, should be converted to little-endian when wrapped
  in pkt, which will be used by HBA ASIC.
  
  The second fix in qla2x_tgt_def.h, reorder the bit-order of structs'
  member, is an attempt in despair, cannot explain why, but it just works!
  
  Besides the programming skills, we cannot get QLogic FC HBA databook,
  and have little acknowledge about the driver, the fixes may need to
  be refined, so don't hold the comments :)
  
  Signed-off-by: Linwen Deng <linwendeng@gmail.com>
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3974 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:28:03 +00:00
Vladislav Bolkhovitin
cc5159a340 Merged revisions 3937-3940 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3937 | vlnb | 2011-11-22 21:34:09 -0500 (Tue, 22 Nov 2011) | 6 lines
  
  Instead of repeating the same name lookup several times, use vdev_find()
  where appropriate.
  
  Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3938 | vlnb | 2011-11-22 21:35:44 -0500 (Tue, 22 Nov 2011) | 37 lines
  
  Avoid that a warning like the one below is triggered when adding
  a nullio, fileio or blockio device with a name that already exists:
  
  WARNING: at fs/sysfs/dir.c:481 sysfs_add_one+0x95/0xd0()
  sysfs: cannot create duplicate filename '/kernel/scst_tgt/devices/disk09'
  Call Trace:
  warn_slowpath_common+0x72/0xa0
  ? sysfs_add_one+0x95/0xd0
  ? sysfs_add_one+0x95/0xd0
  warn_slowpath_fmt+0x33/0x40
  sysfs_add_one+0x95/0xd0
  create_dir+0x61/0xa0
  sysfs_create_dir+0x71/0xb0
  kobject_add_internal+0x9b/0x250
  ? kvasprintf+0x41/0x50
  kobject_init_and_add+0x39/0x60
  scst_dev_sysfs_create+0x6e/0x250 [scst]
  scst_register_virtual_device+0x1f4/0x3e0 [scst]
  vdev_nullio_add_device+0x14f/0x1c0 [scst_vdisk]
  ? vdisk_add_nullio_device+0x5a/0x110 [scst_vdisk]
  vdisk_add_nullio_device+0xf1/0x110 [scst_vdisk]
  ? scst_check_grab_devt_ptr.clone.0+0xa8/0x170 [scst]
  scst_process_devt_mgmt_store+0xa9/0x2a0 [scst]
  ? spin_unlock.clone.11+0x12/0x20 [scst]
  scst_devt_mgmt_store_work_fn+0x13/0x20 [scst]
  scst_process_sysfs_works+0x7f/0x170 [scst]
  ? spin_lock.clone.10+0x12/0x20 [scst]
  sysfs_work_thread_fn+0x103/0x270 [scst]
  ? wake_up_bit+0x30/0x30
  ? prepare_to_wait_exclusive_head.clone.16+0x60/0x60 [scst]
  kthread+0x84/0x90
  ? __init_kthread_worker+0x60/0x60
  kernel_thread_helper+0x6/0x10
  
  Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3939 | vlnb | 2011-11-22 21:53:09 -0500 (Tue, 22 Nov 2011) | 3 lines
  
  Check error code of path_lookup() on pre-39 kernels. Suggested by Lev Vainblat <lev@zadarastorage.com>
........
  r3940 | vlnb | 2011-11-29 17:00:23 -0500 (Tue, 29 Nov 2011) | 66 lines
  
  Fixes problem reported by Lev Vainblat <lev@zadarastorage.com>:
  
  The access to the session sysfs during logout may lead to the kernel oops. In iscsi_unreg_sess_done() the iscsi_session is freed, so scst_sess->tgt_priv (that previously pointed to the iscsi_session) becomes stale. The session is still accessible in sysfs until scst_sess_sysfs_del() call, but accessing to the session via sysfs may return invalid values or crash the kernel:
  
  $ cat /sys/kernel/scst_tgt/targets/iscsi/T1/sessions/iqn.2011-04.com.zadarastorage:316:vc-0/sid
  10000123d0200
  
  [  178.769460] iscsi-scst[895] logout_exec[2718]: Logout received from initiator iqn.2011-04.com.zadarastorage:316:vc-0
  [  178.769482] iscsi-scst[897] cmnd_tx_end[2900]: Closing connection at initiator's iqn.2011-04.com.zadarastorage:316:vc-0 request
  [  178.769546] scst: TM fn 6
  [  178.769623] scst: TM fn 6 finished, status 0
  [  178.770075] scst[1645] scst_cmd_thread[4379]: Processing thread D10_0 (PID 1645) finished
  [  178.770111] scst[1646] scst_cmd_thread[4379]: Processing thread D10_1 (PID 1646) finished
  [  178.770131] scst[1647] scst_cmd_thread[4379]: Processing thread D10_2 (PID 1647) finished
  [  178.770150] scst[1648] scst_cmd_thread[4379]: Processing thread D10_3 (PID 1648) finished
  [  178.770168] scst[1649] scst_cmd_thread[4379]: Processing thread D10_4 (PID 1649) finished
  [  178.770186] scst[1650] scst_cmd_thread[4379]: Processing thread D10_5 (PID 1650) finished
  [  178.770204] scst[1651] scst_cmd_thread[4379]: Processing thread D10_6 (PID 1651) finished
  [  178.770223] scst[1652] scst_cmd_thread[4379]: Processing thread D10_7 (PID 1652) finished
  
  $ cat /sys/kernel/scst_tgt/targets/iscsi/T1/sessions/iqn.2011-04.com.zadarastorage:316:vc-0/sid
  0
  
  $ echo 1> /sys/kernel/scst_tgt/targets/iscsi/T1/sessions/iqn.2011-04.com.zadarastorage:316:vc-0/force_close
  
  [  193.150420] iscsi-scst[1555] iscsi_sess_force_close[389]: Deleting session 0 with initiator (null) (ffff880078316000)
  [  193.150461] BUG: unable to handle kernel NULL pointer dereference at           (null)
  [  193.150545] IP: [<ffffffffa034d034>] iscsi_sess_force_close+0xc4/0x170 [iscsi_scst]
  [  193.150628] PGD 78218067 PUD 79666067 PMD 0
  [  193.150678] Oops: 0000 [#1] SMP
  [  193.150716] last sysfs file: /sys/kernel/scst_tgt/targets/iscsi/T1/sessions/iqn.2011-04.com.zadarastorage:316:vc-0/force_close
  [  193.150824] CPU 0
  [  193.150844] Modules linked in: ib_iser rdma_cm ib_cm iw_cm ib_sa ib_mad ib_core ib_addr iscsi_tcp libiscsi_tcp libiscsi scsi_transport_iscsi dm_iostat scst_vdisk iscsi_scst scst libcrc32c nfsd psmouse exportfs serio_raw virtio_ball   oon nfs lockd fscache nfs_acl auth_rpcgss i2c_piix4 sunrpc lp parport floppy raid10 raid456 async_pq async_xor xor async_memcpy async_raid6_recov ixgbevf raid6_pq async_tx raid1 raid0 multipath linear [last unloaded: scsi_transport_is   csi]
  [  193.151359]
  [  193.151377] Pid: 1555, comm: bash Not tainted 2.6.38-8-server #42-Ubuntu Bochs Bochs
  [  193.151456] RIP: 0010:[<ffffffffa034d034>]  [<ffffffffa034d034>] iscsi_sess_force_close+0xc4/0x170 [iscsi_scst]
  [  193.151556] RSP: 0018:ffff88007a247e28  EFLAGS: 00010287
  [  193.151604] RAX: 000000000000007f RBX: fffffffffffffe30 RCX: 000000000003ffff
  [  193.153372] RDX: 0000000000000000 RSI: 0000000000000086 RDI: 0000000000000246
  [  193.155115] RBP: ffff88007a247e68 R08: 0000000000000036 R09: 000000000000b874
  [  193.156878] R10: 0000000000000000 R11: 0000000000000001 R12: ffff8800783170a0
  [  193.158640] R13: ffff88007a247fd8 R14: ffff88007828c4a0 R15: ffff880078573600
  [  193.160112] FS:  00007f9d23092720(0000) GS:ffff88007fc00000(0000) knlGS:0000000000000000
  [  193.160112] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
  [  193.160112] CR2: 0000000000000000 CR3: 00000000787e6000 CR4: 00000000000006f0
  [  193.160112] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
  [  193.160112] DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
  [  193.160112] Process bash (pid: 1555, threadinfo ffff88007a246000, task ffff88007828c4a0)
  [  193.160112] Stack:
  [  193.160112]  0000000000000000 ffff880078316000 0000000000000000 0000000000000000
  [  193.160112]  ffff880078316000 0000000000000001 ffff8800370ea5a0 ffffffffa02de9c0
  [  193.160112]  ffff88007a247e88 ffffffffa034d138 ffff880078573620 ffff88007a247f48
  [  193.160112] Call Trace:
  [  193.160112]  [<ffffffffa034d138>] iscsi_sess_force_close_store+0x58/0xd0 [iscsi_scst]
  [  193.160112]  [<ffffffffa02bf31c>] scst_store+0x1c/0x20 [scst]
  [  193.160112]  [<ffffffff811d35f1>] sysfs_write_file+0xd1/0x160
  [  193.160112]  [<ffffffff811652e6>] vfs_write+0xc6/0x180
  [  193.160112]  [<ffffffff81165601>] sys_write+0x51/0x90
  [  193.160112]  [<ffffffff8100bfc2>] system_call_fastpath+0x16/0x1b
  [  193.160112] Code: 1f 84 00 00 00 00 00 f6 05 ea ef 00 00 08 75 68 48 89 df be 03 00 00 00 e8 ca d3 ff ff 48 8b 9b d0 01 00 00 48 81 eb d0 01 00 00 <48> 8b 83 d0 01 00 00 0f 18 08 48 8d 83 d0 01 00 00 4c 39 e0 75
  [  193.160112] RIP  [<ffffffffa034d034>] iscsi_sess_force_close+0xc4/0x170 [iscsi_scst]
  [  193.160112]  RSP <ffff88007a247e28>
  [  193.160112] CR2: 0000000000000000
  [  193.200380] ---[ end trace 1988466f0a8da036 ]---
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3973 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:26:46 +00:00
Vladislav Bolkhovitin
dadceece11 Merged revisions 3929 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3929 | bvassche | 2011-11-17 04:24:12 -0500 (Thu, 17 Nov 2011) | 1 line
  
  regtests: Add files necessary for Linux kernel 3.1
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3972 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:24:21 +00:00
Vladislav Bolkhovitin
4023e12c40 Merged revisions 3909,3917,3923,3935 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3909 | vlnb | 2011-11-04 17:34:10 -0400 (Fri, 04 Nov 2011) | 3 lines
  
  Fix build without CONFIG_SCSI_QLA2XXX_TARGET
........
  r3917 | vlnb | 2011-11-08 21:47:23 -0500 (Tue, 08 Nov 2011) | 4 lines
  
  task_mgmt_fn() callback now called under lock and IRQs disabled, so we
  need to reschedule to thread during commands unjamming
........
  r3923 | vlnb | 2011-11-15 20:53:27 -0500 (Tue, 15 Nov 2011) | 3 lines
  
  Fix incorrect attach_tgt() errors processing in the sysfs build reported by David Pineau <dav.pineau@gmail.com>
........
  r3935 | vlnb | 2011-11-22 21:14:38 -0500 (Tue, 22 Nov 2011) | 3 lines
  
  Report target name when session assigned to security group
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3971 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:22:53 +00:00
Vladislav Bolkhovitin
7dab47749e Merged revisions 3926 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3926 | vlnb | 2011-11-16 14:21:30 -0500 (Wed, 16 Nov 2011) | 4 lines
  
  Those patches were mistakenly generated for patch -p0. Fix it. Thanks
  Bart Van Assche for reporting it.
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3970 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:20:11 +00:00
Vladislav Bolkhovitin
c9d1fbde31 Merged revisions 3902 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3902 | vlnb | 2011-10-27 15:11:40 -0400 (Thu, 27 Oct 2011) | 3 lines
  
  Update for kernel 3.1
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3969 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:18:58 +00:00
Vladislav Bolkhovitin
114f8e8f5e Merged revisions 3888 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3888 | bvassche | 2011-10-05 12:27:25 -0400 (Wed, 05 Oct 2011) | 1 line
  
  scst/README: Add a note about how ESX works with t10_dev_id
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3968 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:14:06 +00:00
Vladislav Bolkhovitin
a19b494f4b Blocked revisions 3930-3934,3936,3941-3949,3951-3957,3959-3966 via svnmerge
........
  r3930 | bvassche | 2011-11-17 05:36:03 -0500 (Thu, 17 Nov 2011) | 1 line
  
  regtests: Fix a copy/paste bug in the #if ... partial evaluation code
........
  r3931 | bvassche | 2011-11-17 12:52:29 -0500 (Thu, 17 Nov 2011) | 1 line
  
  scst initialization: Remove kernel module parameters from /etc/default/scst
........
  r3932 | bvassche | 2011-11-17 12:54:41 -0500 (Thu, 17 Nov 2011) | 1 line
  
  regtests: Do not complain if a patch has not been found
........
  r3933 | bvassche | 2011-11-17 12:55:22 -0500 (Thu, 17 Nov 2011) | 1 line
  
  regtests: Use correct kernel.org longterm directory
........
  r3934 | mgandalf | 2011-11-18 15:32:01 -0500 (Fri, 18 Nov 2011) | 1 line
  
  - Fix -issue_lip as reported by Iain Paton.
........
  r3936 | vlnb | 2011-11-22 21:32:25 -0500 (Tue, 22 Nov 2011) | 22 lines
  
  From Bart Van Assche <bvanassche@acm.org>:
  
  As Mikko Kortelainen <kordex@gmail.com> explained on the SCST IRC
  channel, it's not necessary to replace the qla2xxx directory in the
  kernel source tree in order to build the SCST qla2x00t target driver.
  Also, if neither SCSI pass-through nor iSCSI will be used rebuilding
  the kernel tree can be skipped entirely. The patch below updates the
  qla2x00t howto accordingly, and also implements the following changes:
  - Fix everything the W3C HTML validator complains about:
      - Add DOCTYPE declaration.
      - Add charset declaration.
      - Change </br> into <br> since </br> is invalid.
      - Change one occurrence of & into &amp;.
  - Use proper HTML constructs for numbered and unnumbered enumerations.
  - Use a fixed-sized font and the brown color for all computer output
  text (via inline CSS).
  - Use hyperlinks to refer to other steps.
  - Fix spelling errors.
  - Merge the Debian and non-Debian howto's because the differences are
  so small that it's not justified to maintain two different documents.
........
  r3941 | vlnb | 2011-11-30 22:28:39 -0500 (Wed, 30 Nov 2011) | 6 lines
  
  Use get/put_unaligned_be<n>(...) instead of
  get/put_unaligned(cpu_to_be<n>(...)).
  
  BSD-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3942 | vlnb | 2011-11-30 22:31:30 -0500 (Wed, 30 Nov 2011) | 7 lines
  
  In the function scst_mgmt_translate_lun() the variable tgt_dev is
  used as a loop variable and is used inside that loop only.
  Hence it is not necessary to initialize it to NULL.
  
  BSD-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3943 | vlnb | 2011-11-30 22:36:15 -0500 (Wed, 30 Nov 2011) | 17 lines
  
  Use get/put_unaligned() instead of open coding these such that the
  compiler can generate better code.
  
  As an example, the get_unaligned_be24() function used in the
  implementation of READ_6, WRITE_6 and VERIFY_6 together with
  "& 0x1f0000" is inlined by the compiler and is translated as
  follows on an x86_64 system (2031616 equals 0x1f0000):
  
          movl    0(%r13), %r11d
          bswapl  %r11d
          andl    $2031616, %r11d
  
  Also eliminate a conditional branch instruction from get_trans_len_1_256().
  
  BSD-Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3944 | vlnb | 2011-12-01 21:14:59 -0500 (Thu, 01 Dec 2011) | 8 lines
  
  Avoid that the checkpatch.pl script as included in Linux kernel 3.1
  complains about min((int)(a), (int)(b)) that should be changed into
  min_t(int, (a), (b)).
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3945 | vlnb | 2011-12-01 21:24:41 -0500 (Thu, 01 Dec 2011) | 7 lines
  
  disk_work.result is set by disk_cmd_done() and read by disk_exec().
  Since there is a complete_all() / wait_for_completion() pair between both
  accesses the volatile keyword is not necessary here.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3946 | vlnb | 2011-12-01 21:26:29 -0500 (Thu, 01 Dec 2011) | 5 lines
  
  Remove a superfluous pair of braces since checkpatch complains about these.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3947 | vlnb | 2011-12-01 21:39:43 -0500 (Thu, 01 Dec 2011) | 6 lines
  
  Use get_unaligned_be16() for reading the two bytes specifying the buffer length
  to allow the compiler to generate better code for reading these two bytes.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3948 | vlnb | 2011-12-01 21:41:15 -0500 (Thu, 01 Dec 2011) | 5 lines
  
  Micro-optimize the code for CDB parsing in several device handlers.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3949 | vlnb | 2011-12-01 21:42:21 -0500 (Thu, 01 Dec 2011) | 6 lines
  
  The only two values passed into the last two arguments of blockio_exec_rw()
  are 0 and 1. Change their argument type from int to bool.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3951 | mgandalf | 2011-12-05 14:39:59 -0500 (Mon, 05 Dec 2011) | 1 line
  
  - Warn only in issueLip() when -issue_lip is an argument.
........
  r3952 | vlnb | 2011-12-05 22:02:13 -0500 (Mon, 05 Dec 2011) | 7 lines
  
  Change __attribute__((packed)) into __packed and
  __attribute__((aligned(x))) into __aligned(x) in kernel code since
  checkpatch complains about the former.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3953 | bvassche | 2011-12-06 14:08:14 -0500 (Tue, 06 Dec 2011) | 2 lines
  
  ib_srpt: Avoid that session registration failure causes trouble / send a reject if the transition to RTR fails.
........
  r3954 | bvassche | 2011-12-06 14:11:50 -0500 (Tue, 06 Dec 2011) | 1 line
  
  Kernel version updates
........
  r3955 | bvassche | 2011-12-06 14:30:21 -0500 (Tue, 06 Dec 2011) | 1 line
  
  ib_srpt: Send a reject message with non-zero reason code if session creation fails
........
  r3956 | mgandalf | 2011-12-06 14:41:33 -0500 (Tue, 06 Dec 2011) | 1 line
  
  - Small directory check in _issueLip(). Not sure why this is needed.
........
  r3957 | vlnb | 2011-12-06 21:29:14 -0500 (Tue, 06 Dec 2011) | 11 lines
  
  Eliminate the blockio / fileio / nullio if-statements in
  vdisk_do_job() and the READ/WRITE functions called from that
  function. Convert the opcode switch in vdisk_*do_job() to an
  array with function pointers.
  
  The function vdisk_exec_verify() only works for file I/O, so
  rename it into fileio_exec_verify().
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3959 | vlnb | 2011-12-06 22:07:45 -0500 (Tue, 06 Dec 2011) | 3 lines
  
  Web updates
........
  r3960 | bvassche | 2011-12-07 12:31:08 -0500 (Wed, 07 Dec 2011) | 1 line
  
  qla2x_tgt: Remove trailing whitespace
........
  r3961 | vlnb | 2011-12-07 18:58:59 -0500 (Wed, 07 Dec 2011) | 5 lines
  
  Makes scst_vdisk build again on RHEL 5.x.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3962 | vlnb | 2011-12-07 19:00:06 -0500 (Wed, 07 Dec 2011) | 5 lines
  
  Avoid converting back and forth between int and enum
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3963 | vlnb | 2011-12-07 19:06:24 -0500 (Wed, 07 Dec 2011) | 6 lines
  
  Micro-optimize the page count computations in scst_mem.c by
  rewriting these computations such that branch instructions are avoided.
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3964 | vlnb | 2011-12-08 18:49:52 -0500 (Thu, 08 Dec 2011) | 3 lines
  
  Minor logging improvement
........
  r3965 | vlnb | 2011-12-09 22:50:24 -0500 (Fri, 09 Dec 2011) | 5 lines
  
  Replace list_entry((a)->next, b, c) by list_first_entry(a, b, c).
  
  BSD-signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3966 | vlnb | 2011-12-09 22:54:47 -0500 (Fri, 09 Dec 2011) | 3 lines
  
  QLA HOWTO update from Bart Van Assche <bvanassche@acm.org>
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3967 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-10 04:11:43 +00:00
Vladislav Bolkhovitin
da67ebf3b8 Blocked revisions 3844,3847,3850,3853-3859,3863,3866-3867,3869-3870,3872,3875-3877,3879,3882-3892,3894-3901,3903-3907,3910-3911,3914-3916,3918-3922,3924-3925,3927 via svnmerge
........
  r3844 | bvassche | 2011-09-07 14:52:46 -0400 (Wed, 07 Sep 2011) | 5 lines
  
  scst_vdisk, thin provisioning: unmap the largest range possible even if the
  upper bound of the range is not a multiple of PAGE_CACHE_SIZE. This is a
  follow-up for r3799 and removes the PRINT_ERROR() statement introduced in that
  revision.
........
  r3847 | bvassche | 2011-09-07 15:03:06 -0400 (Wed, 07 Sep 2011) | 1 line
  
  ib_srpt: Remove to-do list because outdated
........
  r3850 | vlnb | 2011-09-07 22:17:01 -0400 (Wed, 07 Sep 2011) | 3 lines
  
  Web updates
........
  r3853 | bvassche | 2011-09-17 11:17:41 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Make error reporting more detailed
........
  r3854 | bvassche | 2011-09-17 11:19:45 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Mask off AGN_MASK bits before invoking ib_cm_listen()
........
  r3855 | bvassche | 2011-09-17 11:21:07 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Relax a WARN_ON() statement such that it doesn't fire needlessly
........
  r3856 | bvassche | 2011-09-17 11:22:13 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Make srpt_release_sdev() logging more informative
........
  r3857 | bvassche | 2011-09-17 11:23:36 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Don't wait forever for the Last WQE event
........
  r3858 | bvassche | 2011-09-17 11:24:37 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Make sure that rmmod finishes
........
  r3859 | bvassche | 2011-09-17 11:38:09 -0400 (Sat, 17 Sep 2011) | 1 line
  
  Fix a typo introduced in r3858
........
  r3863 | vlnb | 2011-09-17 20:58:15 -0400 (Sat, 17 Sep 2011) | 34 lines
  
  Patch from Abhilash Sankar <Abhilash.S@hcl.com> with some fixes
  
  Issue:
  ------------
  The DevRegAttribute is sending a different Source Attribute (ISCSI name) which
  represents the Storage Node for each target. So Microsoft isns server considers
  the last request as the storage node and doesn't discover the previous targets.
  
  Root Cause
  ----------------
  Function ISNS_FUNC_DEV_ATTR_REG
  
  Target A
  Source attribute
              ISCSI-Name = <IQN A Name>
  Operating Attribute
              ISCSI-Name  = <IQN A Name>
  Flags
  Replace Access = 1
  
  Target B
  Source attribute
                 ISCSI-Name = <IQN B Name>
  Operating Attribute
                 ISCSI-Name  = <IQN B Name>
  Replace Access = 1
  
  So as per the request format Microsoft isns Server always takes the last target
  as the source node. and register the same. Hence it doesn't discover the
  targets other than last one. The Source Attribute has to be fixed for all targets. It
  would be better if we use the first target iscsi name (rather than the last target
  iscsi name) as source attribute iscsi name to represent the storage node.
........
  r3866 | bvassche | 2011-09-18 03:38:37 -0400 (Sun, 18 Sep 2011) | 1 line
  
  ib_srpt: Reduce the Last WQE wait time
........
  r3867 | bvassche | 2011-09-18 04:01:29 -0400 (Sun, 18 Sep 2011) | 1 line
  
  Follow-up for r3866
........
  r3869 | bvassche | 2011-09-18 07:04:10 -0400 (Sun, 18 Sep 2011) | 1 line
  
  ib_srpt: Show the state name in debug messages
........
  r3870 | bvassche | 2011-09-18 07:15:17 -0400 (Sun, 18 Sep 2011) | 6 lines
  
  ib_srpt: Fix "rejected SRP_LOGIN_REQ because creating a new RDMA channel failed"
  
  Fix two race conditions that could trigger this failure:
  - Completion thread not woken up after channel state change.
  - Reception of Last WQE event before the channel queue pair was reset.
........
  r3872 | bvassche | 2011-09-18 08:23:13 -0400 (Sun, 18 Sep 2011) | 1 line
  
  ib_srpt: Remove a superfluous __srpt_close_ch() call
........
  r3875 | bvassche | 2011-09-22 13:49:04 -0400 (Thu, 22 Sep 2011) | 1 line
  
  ib_srpt: Clean up two PRINT_ERROR() statements
........
  r3876 | bvassche | 2011-09-22 13:49:45 -0400 (Thu, 22 Sep 2011) | 1 line
  
  ib_srpt: Remove an outdated comment
........
  r3877 | bvassche | 2011-09-22 13:51:19 -0400 (Thu, 22 Sep 2011) | 1 line
  
  ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition
........
  r3879 | bvassche | 2011-09-24 10:11:39 -0400 (Sat, 24 Sep 2011) | 1 line
  
  scst, latency statistics: Introduce timespec_to_ns().
........
  r3882 | vlnb | 2011-09-27 22:07:50 -0400 (Tue, 27 Sep 2011) | 3 lines
  
  Change reporting processed_cmds to unsigned as suggested by ido benda <idombd@gmail.com>
........
  r3883 | vlnb | 2011-09-27 22:18:44 -0400 (Tue, 27 Sep 2011) | 5 lines
  
  Micro-optimize scst_unpack_lun(): avoid comparing "len" twice with the constant "2".
  
  Signed-off-by: Bart Van Assche <bvanassche@acm.org>
........
  r3884 | bvassche | 2011-09-28 12:38:27 -0400 (Wed, 28 Sep 2011) | 4 lines
  
  scst, latency statistics:
  - Use 64 bits instead of 32 for each "processed commands" counter.
  - Make sure there is at least one space between adjacent columns.
........
  r3885 | bvassche | 2011-09-28 13:42:50 -0400 (Wed, 28 Sep 2011) | 1 line
  
  Nightly build: include the latency measuring code
........
  r3886 | vlnb | 2011-10-04 22:08:51 -0400 (Tue, 04 Oct 2011) | 3 lines
  
  Limit max unmap LBA count to device size
........
  r3887 | vlnb | 2011-10-04 22:11:19 -0400 (Tue, 04 Oct 2011) | 3 lines
  
  Prevent reverse order of management commands
........
  r3889 | bvassche | 2011-10-05 12:34:09 -0400 (Wed, 05 Oct 2011) | 1 line
  
  srpt/README: Add note about DEVICE.threads_num
........
  r3890 | bvassche | 2011-10-05 13:14:23 -0400 (Wed, 05 Oct 2011) | 1 line
  
  scst: Add script for rebuilding RHEL / CentOS / Scientific Linux kernel RPMs
........
  r3891 | bvassche | 2011-10-05 13:15:39 -0400 (Wed, 05 Oct 2011) | 1 line
  
  Set executable property
........
  r3892 | bvassche | 2011-10-08 07:08:55 -0400 (Sat, 08 Oct 2011) | 1 line
  
  Reran performance measurements
........
  r3894 | bvassche | 2011-10-10 04:27:27 -0400 (Mon, 10 Oct 2011) | 2 lines
  
  scst_vdisk, vdev_sysfs_process_get_filename(): Make sure that dev->dev_unregistering is reread from memory in each loop iteration. Note: the now removed "(volatile bool)" cast did not have any effect.
........
  r3895 | bvassche | 2011-10-10 05:23:32 -0400 (Mon, 10 Oct 2011) | 4 lines
  
  scst_vdisk, blockio: Add write-through (FUA) support.
  
  From: Etienne Dechamps <e-t172@akegroup.org>
........
  r3896 | vlnb | 2011-10-10 23:13:18 -0400 (Mon, 10 Oct 2011) | 4 lines
  
  Reverse r3894, because it is incorrect. There is no order dependency
  between CPUs here, so there's no need in the corresponding fence command.
........
  r3897 | bvassche | 2011-10-20 12:59:15 -0400 (Thu, 20 Oct 2011) | 1 line
  
  ib_srpt: Make the error message about rejected login more clear
........
  r3898 | vlnb | 2011-10-24 18:16:42 -0400 (Mon, 24 Oct 2011) | 3 lines
  
  Make usage of scst_suspend_activity() more flexible by making its timeout be explicit
........
  r3899 | bvassche | 2011-10-25 14:05:57 -0400 (Tue, 25 Oct 2011) | 6 lines
  
  ib_srpt: Avoid stopping polling too early for IB completions.
  
  This resulted in unnecessary complaints about IB completions not being
  received in time when removing the ib_srpt kernel module during I/O. Note:
  it is still possible that such complaints occur, but much less frequent.
........
  r3900 | bvassche | 2011-10-26 13:42:37 -0400 (Wed, 26 Oct 2011) | 1 line
  
  ib_srpt: Avoid a sporadic 160s delay when a session is unregistered or when removing the ib_srpt kernel module during I/O
........
  r3901 | vlnb | 2011-10-26 15:32:58 -0400 (Wed, 26 Oct 2011) | 3 lines
  
  Fix incorrect handling of jiffies wrap around as pointed out by Bart Van Assche.
........
  r3903 | bvassche | 2011-10-30 08:29:45 -0400 (Sun, 30 Oct 2011) | 1 line
  
  ib_srpt: Remove an unused struct member
........
  r3904 | bvassche | 2011-10-30 08:33:42 -0400 (Sun, 30 Oct 2011) | 1 line
  
  ib_srpt: Reduce number of kmalloc() calls per I/O
........
  r3905 | bvassche | 2011-10-30 09:41:46 -0400 (Sun, 30 Oct 2011) | 2 lines
  
  ib_srpt: Further reduce number of kmalloc() calls per I/O
........
  r3906 | vlnb | 2011-11-03 22:24:35 -0400 (Thu, 03 Nov 2011) | 3 lines
  
  Remove dead target
........
  r3907 | bvassche | 2011-11-04 14:35:37 -0400 (Fri, 04 Nov 2011) | 4 lines
  
  ib_srpt: Make srpt_alloc_ioctx_ring() return NULL instead of a dangling
  pointer if allocation fails. Reported by Dan Carpenter
  <dan.carpenter@oracle.com> on the linux-rdma@vger.kernel.org mailing list.
........
  r3910 | vlnb | 2011-11-04 18:03:56 -0400 (Fri, 04 Nov 2011) | 6 lines
  
  Implement building qla2xxx out of the kernel tree. For that
  BUILD_2X_MODULE=y should be passed to make. New module named
  qla2xxx_scst. Obviously, to have it working, the original qla2xxx should
  be either blacklisted, or removed from the target system.
........
  r3911 | bvassche | 2011-11-06 05:35:24 -0500 (Sun, 06 Nov 2011) | 1 line
  
  ib_srpt: Simplify last WQE processing
........
  r3914 | bvassche | 2011-11-07 15:04:26 -0500 (Mon, 07 Nov 2011) | 1 line
  
  ib_srpt: Make max_rsp_size writable
........
  r3915 | bvassche | 2011-11-07 15:09:42 -0500 (Mon, 07 Nov 2011) | 1 line
  
  ib_srpt: Make srpt_srq_size writable
........
  r3916 | bvassche | 2011-11-08 14:50:31 -0500 (Tue, 08 Nov 2011) | 1 line
  
  ib_srpt: Change one occurrence of WARN_ON() into __WARN().
........
  r3918 | mgandalf | 2011-11-11 12:50:08 -0500 (Fri, 11 Nov 2011) | 1 line
  
  Fixed minor config file bug pointed out by Bart Van Assche.
........
  r3919 | bvassche | 2011-11-13 05:04:55 -0500 (Sun, 13 Nov 2011) | 1 line
  
  ib_srpt: Increase default value of srp_max_req_size from 2116 to 4148 bytes.
........
  r3920 | bvassche | 2011-11-15 14:06:36 -0500 (Tue, 15 Nov 2011) | 2 lines
  
  ib_srpt: Reduce the I/O overhead slightly
........
  r3921 | vlnb | 2011-11-15 19:00:40 -0500 (Tue, 15 Nov 2011) | 4 lines
  
  Fixes possible NULL cmd dereference in vdisk_fsync() noticed by Bart Van
  Assche + possible calls of VERIFY commands for BLOCKIO devices
........
  r3922 | vlnb | 2011-11-15 19:04:57 -0500 (Tue, 15 Nov 2011) | 3 lines
  
  Fixes reporting to BLOCKIO devices fsync() errors, noticed by Bart Van Assche
........
  r3924 | bvassche | 2011-11-16 13:50:24 -0500 (Wed, 16 Nov 2011) | 1 line
  
  regtests: Reflect kernel.org directory tree changes
........
  r3925 | bvassche | 2011-11-16 14:05:45 -0500 (Wed, 16 Nov 2011) | 1 line
  
  regtests: Update kernel versions now that kernel.org has been restored.
........
  r3927 | bvassche | 2011-11-16 14:49:44 -0500 (Wed, 16 Nov 2011) | 1 line
  
  regtest: Another update because of the kernel.org directory structure changes
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3928 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-17 03:46:28 +00:00
Bart Van Assche
e0c8c1b249 ib_srpt: Remove an unused struct member (merged r3903 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3913 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-06 10:46:57 +00:00
Bart Van Assche
65c0b7ea2e ib_srpt: Avoid delay when unloading during I/O (merged r3899 and r3900 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3912 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-06 10:45:25 +00:00
Bart Van Assche
fe6c9a0a32 ib_srpt: Make srpt_alloc_ioctx_ring() return NULL instead of a dangling
pointer if allocation fails. Reported by Dan Carpenter
<dan.carpenter@oracle.com> on the linux-rdma@vger.kernel.org mailing list.

(Merged r3907 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3908 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-11-04 18:38:01 +00:00
Bart Van Assche
f407c425c0 Reran performance measurements
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3893 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-10-08 11:17:37 +00:00
Bart Van Assche
0ddfd33bda ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition (Merge r3877 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3881 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-27 18:29:20 +00:00
Bart Van Assche
c014e007b6 ib_srpt: Remove a superfluous __srpt_close_ch() call (Merged r3872 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3880 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-27 16:57:38 +00:00
Vladislav Bolkhovitin
cc480d7829 Blocked revisions 3841-3843,3847,3850,3853-3859,3866-3867,3869-3870,3872,3875-3877 via svnmerge
........
  r3841 | vlnb | 2011-09-01 15:47:41 -0400 (Thu, 01 Sep 2011) | 3 lines
  
  Web updates
........
  r3842 | vlnb | 2011-09-01 16:15:42 -0400 (Thu, 01 Sep 2011) | 3 lines
  
  Changelogs updated
........
  r3843 | bvassche | 2011-09-04 07:57:39 -0400 (Sun, 04 Sep 2011) | 2 lines
  
  /etc/init.d: When installing SCST 3.0, disable and remove the now obsolete iscsi-scst and qla2x00t init scripts.
........
  r3847 | bvassche | 2011-09-07 15:03:06 -0400 (Wed, 07 Sep 2011) | 1 line
  
  ib_srpt: Remove to-do list because outdated
........
  r3850 | vlnb | 2011-09-07 22:17:01 -0400 (Wed, 07 Sep 2011) | 3 lines
  
  Web updates
........
  r3853 | bvassche | 2011-09-17 11:17:41 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Make error reporting more detailed
........
  r3854 | bvassche | 2011-09-17 11:19:45 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Mask off AGN_MASK bits before invoking ib_cm_listen()
........
  r3855 | bvassche | 2011-09-17 11:21:07 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Relax a WARN_ON() statement such that it doesn't fire needlessly
........
  r3856 | bvassche | 2011-09-17 11:22:13 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Make srpt_release_sdev() logging more informative
........
  r3857 | bvassche | 2011-09-17 11:23:36 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Don't wait forever for the Last WQE event
........
  r3858 | bvassche | 2011-09-17 11:24:37 -0400 (Sat, 17 Sep 2011) | 1 line
  
  ib_srpt: Make sure that rmmod finishes
........
  r3859 | bvassche | 2011-09-17 11:38:09 -0400 (Sat, 17 Sep 2011) | 1 line
  
  Fix a typo introduced in r3858
........
  r3866 | bvassche | 2011-09-18 03:38:37 -0400 (Sun, 18 Sep 2011) | 1 line
  
  ib_srpt: Reduce the Last WQE wait time
........
  r3867 | bvassche | 2011-09-18 04:01:29 -0400 (Sun, 18 Sep 2011) | 1 line
  
  Follow-up for r3866
........
  r3869 | bvassche | 2011-09-18 07:04:10 -0400 (Sun, 18 Sep 2011) | 1 line
  
  ib_srpt: Show the state name in debug messages
........
  r3870 | bvassche | 2011-09-18 07:15:17 -0400 (Sun, 18 Sep 2011) | 6 lines
  
  ib_srpt: Fix "rejected SRP_LOGIN_REQ because creating a new RDMA channel failed"
  
  Fix two race conditions that could trigger this failure:
  - Completion thread not woken up after channel state change.
  - Reception of Last WQE event before the channel queue pair was reset.
........
  r3872 | bvassche | 2011-09-18 08:23:13 -0400 (Sun, 18 Sep 2011) | 1 line
  
  ib_srpt: Remove a superfluous __srpt_close_ch() call
........
  r3875 | bvassche | 2011-09-22 13:49:04 -0400 (Thu, 22 Sep 2011) | 1 line
  
  ib_srpt: Clean up two PRINT_ERROR() statements
........
  r3876 | bvassche | 2011-09-22 13:49:45 -0400 (Thu, 22 Sep 2011) | 1 line
  
  ib_srpt: Remove an outdated comment
........
  r3877 | bvassche | 2011-09-22 13:51:19 -0400 (Thu, 22 Sep 2011) | 1 line
  
  ib_srpt: Avoid that the cleanup code invoked after rejecting a new initiator connection triggers a race condition
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3878 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-23 02:03:23 +00:00
Bart Van Assche
15f48dd4ef ib_srpt: Follow-up for r3873 (for modes thread == 0 or thread == 2 only)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3874 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-19 18:31:51 +00:00
Bart Van Assche
d8c5e561a8 ib_srpt: Reenable session unregistration if thread != 1
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3873 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 13:03:01 +00:00
Bart Van Assche
3bc77c2236 ib_srpt: Fix "rejected SRP_LOGIN_REQ because creating a new RDMA channel failed"
Fix two race conditions that could trigger this failure:
- Completion thread not woken up after channel state change.
- Reception of Last WQE event before the channel queue pair was reset.

(Merged r3869 and r3870 from the trunk.)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3871 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 11:57:46 +00:00
Bart Van Assche
9993f198ae ib_srpt: Reduce Last WQE wait time (merge r3866 and 3867 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3868 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 08:18:53 +00:00
Bart Van Assche
2a4e7122e3 ib_srpt: Eliminate a variable that became superfluous due to previous merges
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3865 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 06:48:57 +00:00
Bart Van Assche
344a72508a ib_srpt: Only invoke wake_up_process() in threaded mode
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3864 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 06:47:40 +00:00
Vladislav Bolkhovitin
98a7e0e8b0 Version changed to 2.1.1-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3862 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-18 00:25:52 +00:00
Bart Van Assche
2dc3be5a42 Merge trunk r3632 properly
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3861 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 16:20:48 +00:00
Bart Van Assche
c57dc1b9f0 ib_srpt: Merge r3854..3859 from trunk
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3860 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-17 16:00:12 +00:00
Bart Van Assche
89eb6b5eb6 ib_srpt: Builds again on 32-bit systems (backported r3815 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3852 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-13 18:45:13 +00:00
Bart Van Assche
5acb28a66b ib_srpt: switch to 2.1.1-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3851 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-13 18:41:25 +00:00
Bart Van Assche
2fd10bc541 Remove outdated srpt to-do list (merge r3847 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3848 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 19:04:34 +00:00
Bart Van Assche
23e1a4a9a9 ib_srpt: Prepare 2.1.0 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3846 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 18:56:47 +00:00
Bart Van Assche
90635c9533 Merge r3844 from the trunk.
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3845 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-07 18:55:18 +00:00
Vladislav Bolkhovitin
9f037ecea9 Version updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3840 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:25:22 +00:00
Vladislav Bolkhovitin
f371b78573 Merged revisions 3838 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3838 | vlnb | 2011-09-01 15:04:24 -0400 (Thu, 01 Sep 2011) | 3 lines
  
  Update tag for 2.1.0 release
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3839 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:06:32 +00:00
Vladislav Bolkhovitin
8099d0ae77 2.1.0 release
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 19:01:25 +00:00
Vladislav Bolkhovitin
2e0329c2d2 Merged revisions 3799-3800,3818-3819,3823-3825,3828,3831,3833 via svnmerge from
https://vlnb@scst.svn.sourceforge.net/svnroot/scst/trunk

........
  r3799 | vlnb | 2011-08-04 22:07:35 -0400 (Thu, 04 Aug 2011) | 37 lines
  
  Modified patch from Bart Van Assche <bvanassche@acm.org>:
  
  The range unmapped by the scst_vdisk handler when processing an UNMAP command
  is not correct. The patch below fixes that and also prevents that the following
  kernel crash can be triggered on the target:
  
  Call Trace:
   [<ffffffffa06b5350>] ? srpt_post_send+0xd0/0x140 [ib_srpt]
   [<ffffffff811bb595>] ? cpumask_next_and+0x35/0x50
   [<ffffffff810e6296>] shmem_truncate_range+0x7a6/0xa50
   [<ffffffffa0612ceb>] ? scst_get_buf_full+0x16b/0x270 [scst]
   [<ffffffffa069beb6>] vdisk_exec_unmap+0x1d6/0x4b0 [scst_vdisk]
   [<ffffffff813c0cb6>] ? _raw_spin_unlock+0x16/0x40
   [<ffffffffa069dadc>] vdisk_do_job+0x5fc/0x950 [scst_vdisk]
   [<ffffffffa0605402>] scst_do_real_exec+0xb2/0x400 [scst]
   [<ffffffffa06076a7>] scst_exec+0xd7/0x240 [scst]
   [<ffffffffa06079b6>] scst_send_for_exec+0x1a6/0x2f0 [scst]
   [<ffffffffa06086f8>] scst_process_active_cmd+0x4f8/0x790 [scst]
   [<ffffffffa0608a29>] scst_do_job_active+0x99/0x170 [scst]
   [<ffffffffa060a3da>] scst_cmd_thread+0x15a/0x3b0 [scst]
   [<ffffffff81047470>] ? default_wake_function+0x0/0x20
   [<ffffffffa060a280>] ? scst_cmd_thread+0x0/0x3b0 [scst]
   [<ffffffff8106dc26>] kthread+0x96/0xa0
   [<ffffffff81003cd4>] kernel_thread_helper+0x4/0x10
   [<ffffffff8103db01>] ? finish_task_switch+0x51/0xb0
   [<ffffffff813c0c7c>] ? _raw_spin_unlock_irq+0x1c/0x40
   [<ffffffff813c18b1>] ? restore_args+0x0/0x30
   [<ffffffff8106db90>] ? kthread+0x0/0xa0
   [<ffffffff81003cd0>] ? kernel_thread_helper+0x0/0x10
  
  Invoking truncate_range() with an end len that is not page-size aligned
  triggers it. In other words, with a block size that is below
  PAGE_CACHE_SIZE some UNMAP commands could trigger a kernel bug. I think
  it's better to print an error message and to skip an UNMAP command
  instead of triggering a kernel oops.
........
  r3800 | vlnb | 2011-08-08 21:04:57 -0400 (Mon, 08 Aug 2011) | 3 lines
  
  Update of SCST_Gentoo_HOWTO.txt to SCST 2.x. Thanks to Willem Boterenbrood <w.boterenbrood@gmail.com>!
........
  r3818 | vlnb | 2011-08-17 20:17:06 -0400 (Wed, 17 Aug 2011) | 3 lines
  
  Fix for forgotten devt initialization in preparing internal commands
........
  r3819 | vlnb | 2011-08-17 20:27:12 -0400 (Wed, 17 Aug 2011) | 6 lines
  
  Disable accepting initiator mode commands if initiator mode not enabled
  for 23xx- chips as well as suggested by ido benda <idombd@gmail.com>.
  
  This is extension of r3261 to qla2x00_queuecommand().
........
  r3823 | vlnb | 2011-08-19 19:20:22 -0400 (Fri, 19 Aug 2011) | 3 lines
  
  Update of SCST_Gentoo_HOWTO.txt from Willem Boterenbrood <w.boterenbrood@gmail.com>
........
  r3824 | vlnb | 2011-08-19 19:55:31 -0400 (Fri, 19 Aug 2011) | 3 lines
  
  Fix for one more forgotten initialization in preparing internal commands spotted by kordex@gmail.com
........
  r3825 | bvassche | 2011-08-20 10:04:52 -0400 (Sat, 20 Aug 2011) | 1 line
  
  documentation, spelling: Change phisical into physical
........
  r3828 | bvassche | 2011-08-22 15:19:56 -0400 (Mon, 22 Aug 2011) | 11 lines
  
  scst: Avoid triggering BUG() on uniprocessor systems
  
  On uniprocessor systems with lock debugging disabled spin_is_locked()
  returns false. Disable the spin_is_locked() checks if CONFIG_SMP has not
  been defined.
  
  Reported-by: Frank <frank@debian-nas.org>
  Signed-off-by: Dave Carroll <dcarroll@astekcorp.com>
  Cc: scst-devel <scst-devel@lists.sourceforge.net>
  Cc: Frank <frank@debian-nas.org>
........
  r3831 | vlnb | 2011-08-25 14:08:45 -0400 (Thu, 25 Aug 2011) | 3 lines
  
  Fix possible crash on rel_tgt_id set on transports without is_target_enabled() defined.
........
  r3833 | vlnb | 2011-09-01 14:22:27 -0400 (Thu, 01 Sep 2011) | 5 lines
  
   - Fix possible deadlock between vdev_sysfs_process_get_filename() and vdisk_del_device()
  
   - Cleanups
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3836 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 18:49:22 +00:00
Vladislav Bolkhovitin
98df3f4c7f Blocked revisions 3832 via svnmerge
........
  r3832 | bvassche | 2011-08-31 14:11:21 -0400 (Wed, 31 Aug 2011) | 1 line
  
  nightly build: kernel version updates
........


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3835 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-09-01 18:30:21 +00:00