Vladislav Bolkhovitin
e515f17629
scst: Avoid that smatch complains about dead code
...
Reported by Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4488 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:58:49 +00:00
Vladislav Bolkhovitin
7efac456a3
qla2x00t: Remove a superfluous cast
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4487 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:51:10 +00:00
Vladislav Bolkhovitin
dd37831c06
qla2x00t: Keep smatch happy
...
Smatch reports two warnings on the qla2x00t code:
* sess->local being tested while sess can be NULL.
* The code after the out_unreg_target2x label is only necessary in the procfs build.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4486 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:50:15 +00:00
Vladislav Bolkhovitin
0ab789c476
scst_local: Remove a superfluous if-test
...
It is not necessary to test whether a pointer is not NULL before invoking
kfree(). Detected by smatch.
From: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4485 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:45:35 +00:00
Vladislav Bolkhovitin
d4e66866b1
scst_vdisk: Remove a superfluous test
...
If the code after the "out_close:" label is reached it is guaranteed that fd != NULL.
Hence remove the if (fd != NULL) test after that label.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4484 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:44:30 +00:00
Vladislav Bolkhovitin
a72b347ccf
scst_sysfs: Avoid NULL ptr deref. Fix online documentation
...
Avoid that the PRINT_ERROR() statement that complains about too many parameters
triggers a NULL pointer dereference. Also, fix the online documentation for the
LUN deletion command.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4483 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:42:33 +00:00
Vladislav Bolkhovitin
481c90a66b
scst: Add a comment in scst_global_mgmt_thread()
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4482 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 21:10:09 +00:00
Vladislav Bolkhovitin
eb4f05aafe
This patch addresses a minor stylistic issue: use the value
...
returned by mutex_lock_interruptible() instead of explicitly
assigning -EINTR to res.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4481 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 20:42:58 +00:00
Vladislav Bolkhovitin
6df6692708
scst: Remove a superfluous cast
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4480 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 20:40:05 +00:00
Vladislav Bolkhovitin
fda632ae0b
iscsi-scst: Eliminate a cast
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4479 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 20:38:37 +00:00
Vladislav Bolkhovitin
62b0629e6f
scst: Spelling fix - inquery -> inquiry
...
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4478 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 20:36:54 +00:00
Bart Van Assche
113524a39d
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4477 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 17:27:27 +00:00
Bart Van Assche
160e3aa799
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4476 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 17:25:53 +00:00
Bart Van Assche
6635cfe307
list-source-files: Process subdirectories correctly
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4475 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 17:24:53 +00:00
Mark Buechler
03f3be2ccb
- Add -no_lip option to prevent automatically issueing a LIP after a configuration change.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4474 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-27 14:38:54 +00:00
Vladislav Bolkhovitin
10c0bc4f65
Retried commands should go to the local exec stage + small logging improvements
...
It is needed, because local commands can also be retried
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4473 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-24 21:15:38 +00:00
Vladislav Bolkhovitin
7b77e66b07
Workaround (leftover?) events after disable iSNS server
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4472 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-24 18:54:35 +00:00
Vladislav Bolkhovitin
19153e3a65
Ensure that generated USN is unique
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4471 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-24 02:15:04 +00:00
Vladislav Bolkhovitin
5b26b06791
We need to abort internal commands as well.
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4470 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-16 19:52:32 +00:00
Vladislav Bolkhovitin
5305d716ea
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4469 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-16 01:36:10 +00:00
Vladislav Bolkhovitin
628cbf0ddd
Fix crash on attach an initiator to an empty vcdrom device,
...
then add a "disk" to it via sysfs and then try to read from it from the initiator.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4468 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-14 19:15:57 +00:00
Vladislav Bolkhovitin
b08cee14bd
Cleanup and minor sysfs entry creation fix
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4467 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-13 22:01:25 +00:00
Bart Van Assche
f090f59a48
nightly build: Reduce noice in smatch output diffs
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4466 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-12 08:44:59 +00:00
Vladislav Bolkhovitin
f0df328198
Microoptimization
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4465 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-11 01:37:07 +00:00
Vladislav Bolkhovitin
0327e15440
Currently there is a possibility that a session name is reused and
...
passed to scst_sess_sysfs_create() before scst_sess_sysfs_del() has
finished removing a kobject that is using the same session name. This
patch fixes that. It works by maintaining yet another session list,
namely a list of sessions registered in sysfs, and by using that list to
check for duplicate session names.
Signed-off-by: Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4464 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-10 02:02:35 +00:00
Vladislav Bolkhovitin
1b68210cce
Fix possible commands hangs with lockless queuecommand() in scst_local
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4463 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-10 01:48:35 +00:00
Vladislav Bolkhovitin
a95528fb5c
Let's have disk timeouts in sync with most OSes (30 seconds)
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4462 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-09 20:56:11 +00:00
Bart Van Assche
56a6d92109
nightly build: Add kernel version 3.5
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4461 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-09 08:08:15 +00:00
Bart Van Assche
e0f7025708
nightly build: Add kernel 3.5 build infrastructure
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4460 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-09 08:07:26 +00:00
Bart Van Assche
c0e4470677
nightly build: Update kernel versions
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4459 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-09 08:06:53 +00:00
Vladislav Bolkhovitin
5f662059a7
Update for 3.5 kernel
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4458 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-09 02:19:31 +00:00
Vladislav Bolkhovitin
74713a49d2
ha->tgt must be used here instead of sess->tgt
...
Found by smatch, reported by Bart Van Assche <bvanassche@acm.org >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4457 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-08 18:29:10 +00:00
Vladislav Bolkhovitin
cdb13cfc5f
Cleanups
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4456 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-08 18:00:51 +00:00
Bart Van Assche
b958a82132
scst: Fix a recently introduced checkpatch complaint
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4455 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-08 07:02:36 +00:00
Bart Van Assche
46a3540873
scst: Make sure that scst_get_unique_sess_name() is called under scst_mutex
...
such that session names are again guaranteed to be unique (follow-up for r4452).
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4454 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-07 18:06:37 +00:00
Bart Van Assche
239d6243ec
scst: Fix race between closing a session and adding a LUN
...
Fixes this call stack (kernel 3.2.15):
WARNING: at lib/kref.c:34 kref_get+0x2d/0x30()
Hardware name: X8ST3
Modules linked in: scst_vdisk ib_srpt scst
Pid: 2159, comm: scst_uid Tainted: G W 3.2.15-07+ #2
Call Trace:
[<ffffffff81059cba>] warn_slowpath_common+0x7a/0xb0
[<ffffffff81059d05>] warn_slowpath_null+0x15/0x20
[<ffffffff812a5d7d>] kref_get+0x2d/0x30
[<ffffffff812a46ba>] kobject_get+0x1a/0x30
[<ffffffff812a471b>] kobject_add_internal+0x4b/0x240
[<ffffffff812a4bf3>] kobject_init_and_add+0x63/0x90
[<ffffffffa001082b>] ? scst_tgt_dev_setup_threads+0xab/0x310 [scst]
[<ffffffffa001a722>] scst_tgt_dev_sysfs_create+0x42/0x80 [scst]
[<ffffffffa0010e8c>] scst_alloc_add_tgt_dev+0x31c/0x4b0 [scst]
[<ffffffffa001362e>] scst_acg_add_lun+0xfe/0x230 [scst]
[<ffffffff812b4511>] ? _kstrtoull+0x31/0x90
[<ffffffffa001777c>] scst_luns_mgmt_store_work_fn+0x29c/0x6b0 [scst]
[<ffffffffa0019634>] sysfs_work_thread_fn+0xd4/0x2e0 [scst]
[<ffffffff8107a020>] ? wake_up_bit+0x40/0x40
[<ffffffffa0019560>] ? scst_tgt_cpu_mask_show+0x20/0x20 [scst]
[<ffffffff81079ab6>] kthread+0x96/0xa0
[<ffffffff8163d7b4>] kernel_thread_helper+0x4/0x10
[<ffffffff81079a20>] ? kthread_worker_fn+0x190/0x190
[<ffffffff8163d7b0>] ? gs_change+0x13/0x13
Reported-by: Sebastian Riemer <sebastian.riemer@profitbricks.com >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4453 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-07 17:29:58 +00:00
Bart Van Assche
736b99485d
scst: Move the code for computing a unique session name
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4452 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-07 17:28:34 +00:00
Bart Van Assche
e81d1b552b
nightly build: Factor out shared code into a new function
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4450 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-07 12:00:41 +00:00
Bart Van Assche
8df49947fa
nightly build: Move shell code for listing files under source control into a separate file
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4449 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-07 11:40:09 +00:00
Bart Van Assche
2df95bda26
ib_srpt: Document an additional test
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4448 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-05 09:26:24 +00:00
Bart Van Assche
123911a2c3
ib_srpt: Document impact of interrupt assignment on fairness
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4447 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-04 14:36:27 +00:00
Bart Van Assche
36a77c3708
ib_srpt: Avoid that module unloading races with closing sessions
...
Fixed issue:
BUG: unable to handle kernel paging request at ffffffffa04dc479
IP: [<ffffffffa04dc479>] 0xffffffffa04dc478
Oops: 0010 [#1 ] SMP
Pid: 29313, comm: srpt_mlx4_0-2 Tainted: G O 3.6.0-rc1-debug+ #1
Process srpt_mlx4_0-2
Call Trace:
[<ffffffff8106254e>] ? kthread+0xae/0xc0
[<ffffffff81418464>] ? kernel_thread_helper+0x4/0x10
[<ffffffff8140f080>] ? _raw_spin_unlock_irq+0x30/0x50
[<ffffffff810983ad>] ? trace_hardirqs_on+0xd/0x10
[<ffffffff8140f359>] ? retint_restore_args+0xe/0xe
[<ffffffff810624a0>] ? __init_kthread_worker+0x70/0x70
[<ffffffff81418460>] ? gs_change+0xb/0xb
Code: Bad RIP value.
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4446 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-04 08:36:57 +00:00
Bart Van Assche
0a1bb6e997
nightly build: Report smatch informational messages too
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4445 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-08-01 09:45:40 +00:00
Bart Van Assche
fe9902a67a
scripts/rebuild-rhel-kernel-rpm: Add RHEL 6.3 support
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4443 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-29 16:50:00 +00:00
Bart Van Assche
ad8aea579b
nightly build: Kernel version update
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4431 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-29 09:51:16 +00:00
Bart Van Assche
5e12b3e480
scripts/run-regression-tests: Run smatch too
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-29 08:28:56 +00:00
Vladislav Bolkhovitin
fabf9fceda
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 >
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4425 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-27 01:14:55 +00:00
Vladislav Bolkhovitin
b1e0e7ef19
Web updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4424 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-26 01:45:57 +00:00
Vladislav Bolkhovitin
0601427337
scst_sess_get() should be done in scst_pre_rx_mgmt_cmd() instead of scst_post_rx_mgmt_cmd()
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4423 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-25 18:48:06 +00:00
Vladislav Bolkhovitin
55fc545848
Docs updates
...
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4422 d57e44dd-8a1f-0410-8b47-8ef2f437770f
2012-07-24 19:35:04 +00:00