Commit Graph

132 Commits

Author SHA1 Message Date
Bart Van Assche
958579fd8b Automate release archive generation (merge r4676, r4677 and r4679 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4695 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2013-01-06 10:04:11 +00:00
Bart Van Assche
6185ae237c Add kernel 3.7 support (merge r4645..4647 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4651 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-12-18 09:45:35 +00:00
Bart Van Assche
287def7141 scst_local: Avoid deadlock during module removal with kernel 3.6 (merge r4566 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4575 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 13:56:12 +00:00
Bart Van Assche
18196379a8 Update for 3.6 kernels (merge r4538 and r4539 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4574 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 13:54:51 +00:00
Bart Van Assche
4efdfaf368 nightly build: Add kernel 3.5 build infrastructure (merge r4460 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4572 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-11-03 13:29:38 +00:00
Bart Van Assche
2f527c350c scst_local: Avoid that removing vdisk_cdrom devices can trigger a deadlock
Avoid that removing the scst_local kernel module triggers a deadlock
when one of its LUNs is a CD-ROM device. sr_block_release() invokes
scst_local_release_adapter() indirectly with sr_mutex held. So if 
scst_local_release_adapter() blocks until the scst_local session has
been freed a deadlock may be triggered if another CD-ROM device has
to be closed in order to free that session. Fix this by changing
scst_local_release_adapter() such that it does not wait until the
session unregistration has finished.

Call stacks obtained with echo w > /proc/sysrq-trigger:

SysRq : Show Blocked State
  task                        PC stack   pid father
scst_mgmtd      D ffffffff812f979d     0  5552      2 0x00000000
 ffff88003c335b30 0000000000000046 ffffffff812f979d 0000000000000002
 ffff8800171d47a0 ffff88003c335fd8 ffff88003c335fd8 ffff88003c335fd8
 ffff88003d1b0000 ffff8800171d47a0 ffff88003c335b60 ffff88003c334000
Call Trace:
 [<ffffffff812f979d>] ? sr_block_release+0x2d/0x60
 [<ffffffff812f979d>] ? sr_block_release+0x2d/0x60
 [<ffffffff814a9b19>] schedule+0x29/0x70
 [<ffffffff814a9e57>] schedule_preempt_disabled+0x27/0x40
 [<ffffffff814a79b7>] mutex_lock_nested+0x187/0x390
 [<ffffffff812f979d>] ? sr_block_release+0x2d/0x60
 [<ffffffff812f979d>] sr_block_release+0x2d/0x60
 [<ffffffff8118a1ec>] __blkdev_put+0x19c/0x1d0
 [<ffffffff8118a27d>] blkdev_put+0x5d/0x180
 [<ffffffff8118a3c8>] blkdev_close+0x28/0x30
 [<ffffffff81153633>] fput+0x103/0x280
 [<ffffffff8114fad9>] filp_close+0x69/0x90
 [<ffffffffa022ec24>] vdisk_detach_tgt+0x134/0x150 [scst_vdisk]
 [<ffffffffa02d8f2f>] scst_free_tgt_dev+0xdf/0x220 [scst]
 [<ffffffffa02d949f>] ? scst_free_session_callback+0x7f/0x170 [scst]
 [<ffffffffa02d90eb>] scst_sess_free_tgt_devs+0x7b/0x110 [scst]
 [<ffffffffa02d91de>] scst_free_session+0x5e/0x2a0 [scst]
 [<ffffffffa02d94be>] scst_free_session_callback+0x9e/0x170 [scst]
 [<ffffffffa02c6a05>] scst_global_mgmt_thread+0x2e5/0x580 [scst]
 [<ffffffff8105e850>] ? __init_waitqueue_head+0x60/0x60
 [<ffffffffa02c6720>] ? scst_register_session_non_gpl+0x20/0x20 [scst]
 [<ffffffff8105dd77>] kthread+0xb7/0xc0
 [<ffffffff814b50b4>] kernel_thread_helper+0x4/0x10
 [<ffffffff814abb30>] ? retint_restore_args+0x13/0x13
 [<ffffffff8105dcc0>] ? __init_kthread_worker+0x70/0x70
 [<ffffffff814b50b0>] ? gs_change+0x13/0x13
iscsi-scstd     D ffffffffa02b1b1f     0  5567      1 0x00000004
 ffff88003c2f59a8 0000000000000046 ffffffffa02b1b1f 0000000000000002
 ffff8800173b23d0 ffff88003c2f5fd8 ffff88003c2f5fd8 ffff88003c2f5fd8
 ffff88003d198000 ffff8800173b23d0 ffff88003c2f59d8 ffff88003c2f4000
Call Trace:
 [<ffffffffa02b1b1f>] ? scst_unregister_target+0x8f/0x450 [scst]
 [<ffffffffa02b1b1f>] ? scst_unregister_target+0x8f/0x450 [scst]
 [<ffffffff814a9b19>] schedule+0x29/0x70
 [<ffffffff814a9e57>] schedule_preempt_disabled+0x27/0x40
 [<ffffffff814a79b7>] mutex_lock_nested+0x187/0x390
 [<ffffffffa02b1b1f>] ? scst_unregister_target+0x8f/0x450 [scst]
 [<ffffffffa025c7ba>] ? __iscsi_del_attr+0xea/0x190 [iscsi_scst]
 [<ffffffffa02b1b1f>] scst_unregister_target+0x8f/0x450 [scst]
 [<ffffffffa025c7ba>] ? __iscsi_del_attr+0xea/0x190 [iscsi_scst]
 [<ffffffffa026249f>] target_destroy+0x5f/0xc0 [iscsi_scst]
 [<ffffffffa02631f2>] target_del_all+0xf2/0x2d0 [iscsi_scst]
 [<ffffffffa025c8aa>] release+0x4a/0xe0 [iscsi_scst]
 [<ffffffff81153633>] fput+0x103/0x280
 [<ffffffff8114fad9>] filp_close+0x69/0x90
 [<ffffffff8103e533>] put_files_struct+0x103/0x1c0
 [<ffffffff8103e478>] ? put_files_struct+0x48/0x1c0
 [<ffffffff8103e6b2>] exit_files+0x52/0x60
 [<ffffffff8103eb80>] do_exit+0x180/0x8e0
 [<ffffffff8104ef87>] ? get_signal_to_deliver+0xe7/0x6e0
 [<ffffffff8103f631>] do_group_exit+0x51/0xc0
 [<ffffffff8104f0bf>] get_signal_to_deliver+0x21f/0x6e0
 [<ffffffff8100223c>] do_signal+0x3c/0x580
 [<ffffffff81002805>] do_notify_resume+0x65/0xa0
 [<ffffffff812149de>] ? trace_hardirqs_on_thunk+0x3a/0x3f
 [<ffffffff814b4122>] int_signal+0x12/0x17
rmmod           D ffffffffa02b1b70     0  5714   5681 0x00000000
 ffff88000b497d48 0000000000000046 ffffffffa02b1b70 0000000000000002
 ffff88003920a3d0 ffff88000b497fd8 ffff88000b497fd8 ffff88000b497fd8
 ffff88003d17a3d0 ffff88003920a3d0 ffff88000b497d78 ffff88000b496000
Call Trace:
 [<ffffffffa02b1b70>] ? scst_unregister_target+0xe0/0x450 [scst]
 [<ffffffffa02b1b70>] ? scst_unregister_target+0xe0/0x450 [scst]
 [<ffffffff814a9b19>] schedule+0x29/0x70
 [<ffffffff814a9e57>] schedule_preempt_disabled+0x27/0x40
 [<ffffffff814a79b7>] mutex_lock_nested+0x187/0x390
 [<ffffffffa02b1b70>] ? scst_unregister_target+0xe0/0x450 [scst]
 [<ffffffffa02b1b70>] scst_unregister_target+0xe0/0x450 [scst]
 [<ffffffffa0287e51>] ? scst_local_exit+0x6b/0x21a [scst_local]
 [<ffffffff812c2d37>] ? put_device+0x17/0x20
 [<ffffffff812c3efa>] ? device_unregister+0x2a/0x60
 [<ffffffffa0285108>] __scst_local_remove_target+0xa8/0x130 [scst_local]
 [<ffffffffa0287e6a>] scst_local_exit+0x84/0x21a [scst_local]
 [<ffffffff810a40c6>] sys_delete_module+0x1a6/0x2b0
 [<ffffffff812149de>] ? trace_hardirqs_on_thunk+0x3a/0x3f
 [<ffffffff814b3de9>] system_call_fastpath+0x16/0x1b
ata_id          D ffff88003920c7a0     0  5715   5195 0x00000000
 ffff880015e97818 0000000000000046 0000000000000000 0000000000000046
 ffff88003920c7a0 ffff880015e97fd8 ffff880015e97fd8 ffff880015e97fd8
 ffff880021788000 ffff88003920c7a0 ffff880015e977f8 7fffffffffffffff
Call Trace:
 [<ffffffff814a9b19>] schedule+0x29/0x70
 [<ffffffff814a7355>] schedule_timeout+0x315/0x390
 [<ffffffff814a98e3>] ? wait_for_common+0x43/0x170
 [<ffffffff814a98e3>] ? wait_for_common+0x43/0x170
 [<ffffffff814a99c2>] wait_for_common+0x122/0x170
 [<ffffffff810705b0>] ? try_to_wake_up+0x2f0/0x2f0
 [<ffffffff814a9aed>] wait_for_completion+0x1d/0x20
 [<ffffffffa02bfad3>] scst_unregister_session+0x1a3/0x320 [scst]
 [<ffffffffa0284990>] scst_local_release_adapter+0xa0/0x140 [scst_local]
 [<ffffffff812c2f87>] device_release+0x27/0xa0
 [<ffffffff81209abb>] kobject_release+0x8b/0x1d0
 [<ffffffff8120993c>] kobject_put+0x2c/0x60
 [<ffffffff812c2d37>] put_device+0x17/0x20
 [<ffffffff812e1850>] scsi_host_dev_release+0xc0/0xe0
 [<ffffffff812c2f87>] device_release+0x27/0xa0
 [<ffffffff81209abb>] kobject_release+0x8b/0x1d0
 [<ffffffff8120993c>] kobject_put+0x2c/0x60
 [<ffffffff812c2d37>] put_device+0x17/0x20
 [<ffffffff812ea0c2>] scsi_target_dev_release+0x22/0x30
 [<ffffffff812c2f87>] device_release+0x27/0xa0
 [<ffffffff81209abb>] kobject_release+0x8b/0x1d0
 [<ffffffff8120993c>] kobject_put+0x2c/0x60
 [<ffffffff812c2d37>] put_device+0x17/0x20
 [<ffffffff812ed818>] scsi_device_dev_release_usercontext+0x118/0x130
 [<ffffffff812ed700>] ? scsi_device_cls_release+0x20/0x20
 [<ffffffff81056576>] execute_in_process_context+0x86/0xa0
 [<ffffffff812ed6dc>] scsi_device_dev_release+0x1c/0x20
 [<ffffffff812c2f87>] device_release+0x27/0xa0
 [<ffffffff81209abb>] kobject_release+0x8b/0x1d0
 [<ffffffff8120993c>] kobject_put+0x2c/0x60
 [<ffffffff812c2d37>] put_device+0x17/0x20
 [<ffffffff812df594>] scsi_device_put+0x44/0x60
 [<ffffffff812f974d>] scsi_cd_put+0x4d/0x70
 [<ffffffff812f97b1>] sr_block_release+0x41/0x60
 [<ffffffff8118a1ec>] __blkdev_put+0x19c/0x1d0
 [<ffffffff8118a27d>] blkdev_put+0x5d/0x180
 [<ffffffff8118a3c8>] blkdev_close+0x28/0x30
 [<ffffffff81153633>] fput+0x103/0x280
 [<ffffffff814a93b3>] ? __schedule+0x3c3/0x820
 [<ffffffff8114fad9>] filp_close+0x69/0x90
 [<ffffffff8114fba0>] sys_close+0xa0/0x100
 [<ffffffff814b3de9>] system_call_fastpath+0x16/0x1b

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Cc: Richard Sharpe <realrichardsharpe@gmail.com>

(Backport r4425 from trunk)


git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4427 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-27 16:29:05 +00:00
Bart Van Assche
463c93fe6e Add kernel 3.4 support (merge r4320 and r4321 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4356 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-06-18 12:24:40 +00:00
Bart Van Assche
a44c64c221 nightly build: Add 3.3 support patches (merge r4167 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4229 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-04-25 09:21:26 +00:00
Vladislav Bolkhovitin
ccffee2682 Version updated to 2.2.1-pre
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4103 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-26 05:43:06 +00:00
Bart Van Assche
b1321b7d11 Add kernel 3.2 support / iSCSI-SCST netlink change (merge r4077, r4078 and r4080 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4096 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-25 20:10:27 +00:00
Bart Van Assche
a3fe2c4a59 scst_local: Fix a recently introduced compiler warning (merged r3804 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4094 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-01-25 19:18:10 +00:00
Bart Van Assche
c7803e79d4 Remove superfluous double quotes from around #warning messages because checkpatch 3.0 complains about these (merge r3789 from trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.0.x@4006 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-12-19 15:54:15 +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
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
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
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
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
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
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
Bart Van Assche
593a7b0fe3 scst_local/procfs bug fix: do not include <scst_const.h> before <scst.h> (merged r3489 from the trunk).
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3555 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-08 16:13:51 +00:00
Vladislav Bolkhovitin
51a96ec92d Merge of the trunk's r3504:
- Let's always do extraclean on Makefiles modifications, because they can affect data layout in header files, which could not be detected by all target drivers/dev handlers makes
 - Cleanups



git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3505 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-06-01 16:59:28 +00:00
Vladislav Bolkhovitin
0bfa54bfb8 Merge the trunk's rrs 3438:3445, 3447:3450, 3452:3456 and 3458:3466
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.1.0.x@3470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-05-20 23:02:07 +00:00
Vladislav Bolkhovitin
4539005d7c Patch from Alexey Obitotskiy <alexeyo1@open-e.com> making get_initiator_port_transport_id() more flexible
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3322 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-29 14:30:01 +00:00
Bart Van Assche
d00afd73f4 Added remaining files necessary for 2.6.38 nightly build support.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3304 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-24 11:55:23 +00:00
Vladislav Bolkhovitin
f518cd150c Let's remove *.orig and *.rej files on extraclean
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3277 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-03-10 20:07:23 +00:00
Vladislav Bolkhovitin
d38930733e Cleanup of unused out_sess.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3243 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-31 23:17:23 +00:00
Vladislav Bolkhovitin
f15f2cdd5f - Making scst_local be safe with BLOCKIO and pass-through.
- Docs update



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3205 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-11 13:39:27 +00:00
Vladislav Bolkhovitin
411fb4f623 - Update for 2.6.37
- Docs updated
 - Returning of DIRECT contexts by scst_estimate_context() disabled (see comment in the patch why)



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3203 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-10 18:34:29 +00:00
Vladislav Bolkhovitin
f3238333dd Copyrights updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3200 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-06 20:02:04 +00:00
Bart Van Assche
2dce167153 scst_local: Ported to kernel 2.6.37.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3194 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2011-01-05 13:58:18 +00:00
Bart Van Assche
94b01ca7a3 Added 2.6.37-related files (svn merge -c3129 https://scst.svn.sourceforge.net/svnroot/scst/branches/sysfs-tree-changes).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3146 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-20 14:12:44 +00:00
Vladislav Bolkhovitin
14930d39a9 Making creation of default target and session by default
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3131 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-12-18 15:53:59 +00:00
Vladislav Bolkhovitin
e1066553c8 The return value of scst_tgt_get_tgt_priv() in sysfs methods must be checked because at least in
theory it is possible that scst_tgt_get_tgt_priv() is invoked before
scst_register_target() returns. The patch below implements such a check and
also removes some superfluous casts.

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



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2691 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-13 17:27:02 +00:00
Vladislav Bolkhovitin
d66dcd71eb Fix minor Makefile issues
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2655 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-10 12:35:11 +00:00
Bart Van Assche
a5417c1641 Compilation: Disabled -Wextra on RHEL5 since it triggers too many uninteresting warnings on that platform.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2615 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-11-06 10:20:16 +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
Bart Van Assche
6ace2a37bc Avoid that sparse complains on the scst_local source code.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2288 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-27 15:27:33 +00:00
Vladislav Bolkhovitin
27ba7c24d8 Docs updated
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2232 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-24 12:22:02 +00:00
Vladislav Bolkhovitin
2d9473d073 Scstadmin now can create sessions, so update README
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2224 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 18:57:13 +00:00
Richard Sharpe
56e6f52c54 remove an unneeded include file
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2182 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-23 04:47:43 +00:00
Richard Sharpe
2fc8c5ea79 Fix the AEN code, particularly the work function stuff to work with older
versions of the kernel. Also, use correct specifiers in some places, ie %zd 
where a negative number could be printed.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2149 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-20 14:30:00 +00:00
Richard Sharpe
25520184a4 A small coding style fix, plus a specifier fix in an ifdef block. The coding
style fix conforms to the kernel coding standard and uses if (!xxx) rather
than if (NULL == xxx).


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2138 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-17 04:00:15 +00:00
Richard Sharpe
3d41efd784 Add an #ifndef CONFIG_SCST_PROC around the checking for add_default_tgt so that
we use the old PROC behavior.



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2122 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-14 02:43:33 +00:00
Vladislav Bolkhovitin
11fade176a Scan host only if it has LUNs
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2117 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:15:02 +00:00
Vladislav Bolkhovitin
f6a2a6b4db CDB splitting added
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2115 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 21:02:35 +00:00
Vladislav Bolkhovitin
98b09a7a26 SG chaining implemented
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2113 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-13 20:47:44 +00:00
Richard Sharpe
d4d9b4c5ed I think this fixes the problem Vlad had after he reworked scst_local.c but he
seems to have removed the setting of hpnt->max_id, so it seems the default is
7. Set it to 0 because we only want one ID on the device, and we don't do
any checking ...



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2110 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 20:28:47 +00:00
Richard Sharpe
118900953e Fix the module parm description so that the name matches the correct name.
Also, this approach changes the default behavior for people who are using
CONFIG_SCST_PROC because the default was that a single host/tgt was added,
but now they have to change their /etc/modules.d/scst.conf or whatever to 
add add_default_tgt=1.

I am not sure that is a good thing.

With the last few commits and this one, I have tested on 2.6.34.1 and 2.6.28
and things seem to work. I am now looking at the problem Vlad reported with
CONFIG_SCST_PROC where local devices show up under SCSI bus or device from 0
to 7.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2108 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 18:11:42 +00:00
Richard Sharpe
bad63dc691 Fix a bug where is we load without specifying add_default_tgt=1 we cause an
oops when we try to unload scst_local. This is because we were unregistering 
the driver if we did not add a default target, but we try to do that again
when we try to unload the driver.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2101 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-12 05:48:27 +00:00
Richard Sharpe
2be149adb3 Add more damn ifdefs to allow us to use root_device_register to create the
root device rather than using a statically allocated structure in the driver.

Tested with 2.6.24 ... now testing with an earlier version.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@2100 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2010-09-11 23:22:00 +00:00