mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-21 20:51:27 +00:00
17fe37ecd10d9b0d8e4358c242cffa3352493e47
Avoid that the call stack below is triggered when an INQUIRY is sent to an scst_local LUN that does not exist. [2990]: scst: scst_set_resp_data_len:2870:***ERROR***: Too big response data len 36 (max 0), limiting it to the max (dev (no LUN)) Pid: 2990, comm: kworker/u:3 Tainted: G O 3.9.0-rc4-debug+ #1 Call Trace: [<ffffffffa027cac1>] scst_set_resp_data_len+0x1b1/0x1d0 [scst] [<ffffffffa027ef20>] scst_set_lun_not_supported_inquiry+0x140/0x400 [scst] [<ffffffff81080f05>] ? sched_clock_local+0x25/0x90 [<ffffffffa027f2cf>] scst_set_cmd_error+0xef/0x210 [scst] [<ffffffffa02650f5>] ? scst_translate_lun+0x125/0x320 [scst] [<ffffffffa026fd10>] __scst_init_cmd+0x1f0/0x270 [scst] [<ffffffffa027015b>] scst_init_cmd+0x6b/0x310 [scst] [<ffffffffa0273b94>] scst_cmd_init_done+0x124/0x5b0 [scst] [<ffffffffa026dcb8>] ? scst_rx_cmd+0xb8/0x220 [scst] [<ffffffff81081098>] ? sched_clock_cpu+0xa8/0x110 [<ffffffffa02f3b5e>] scst_local_queuecommand+0x1ae/0x3c0 [scst_local] [<ffffffff8133870f>] ? scsi_request_fn+0x34f/0x530 [<ffffffff81531de0>] ? _raw_spin_unlock_irq+0x30/0x50 [<ffffffff81331320>] scsi_dispatch_cmd+0x150/0x4b0 [<ffffffff81338721>] scsi_request_fn+0x361/0x530 [<ffffffff8121be37>] __blk_run_queue+0x37/0x50 [<ffffffff812294b1>] blk_execute_rq_nowait+0x81/0x100 [<ffffffff8106cc46>] ? __init_waitqueue_head+0x46/0x60 [<ffffffff81229682>] blk_execute_rq+0x152/0x200 [<ffffffff811adb41>] ? bio_phys_segments+0x21/0x30 [<ffffffff812243f0>] ? blk_rq_bio_prep+0x30/0xb0 [<ffffffff81337de6>] scsi_execute+0xe6/0x180 [<ffffffff81338fbd>] scsi_execute_req+0xbd/0x130 [<ffffffff8133ace7>] scsi_probe_and_add_lun+0x257/0xe10 [<ffffffff8152b18e>] ? __slab_free+0x2c0/0x311 [<ffffffff8133c113>] __scsi_scan_target+0x2a3/0x790 [<ffffffff8131fd09>] ? __pm_runtime_resume+0x69/0xa0 [<ffffffff81531e3f>] ? _raw_spin_unlock_irqrestore+0x3f/0x80 [<ffffffff8133c78e>] scsi_scan_target+0xfe/0x110 [<ffffffffa02f281c>] scst_process_aens+0xcc/0x210 [scst_local] [<ffffffff815317f2>] ? _raw_spin_lock+0x72/0x80 [<ffffffffa02f2669>] ? spin_lock+0x9/0x10 [scst_local] [<ffffffffa02f2b39>] scst_aen_work_fn+0x79/0x140 [scst_local] [<ffffffff810655ca>] process_one_work+0x1da/0x650 [<ffffffff81065562>] ? process_one_work+0x172/0x650 [<ffffffff81065df2>] worker_thread+0x112/0x330 [<ffffffff81065ce0>] ? rescuer_thread+0x260/0x260 [<ffffffff8106c15d>] kthread+0xed/0x100 [<ffffffff810a0d75>] ? lock_release_holdtime.part.26+0x15/0x1a0 [<ffffffff8106c070>] ? flush_kthread_worker+0x190/0x190 [<ffffffff8153b92c>] ret_from_fork+0x7c/0xb0 [<ffffffff8106c070>] ? flush_kthread_worker+0x190/0x190 Signed-off-by: Bart Van Assche <bvanassche@acm.org> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4837 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This is the SCST development repository. It contains not a single project SCST as one can think, but a number of them, which are divided as the following: 1. SCST core in scst/ subdirectory 2. Administration utility for SCST core scstadmin in scstadmin/ 3. Target drivers in own subdirectories qla2x00t/, iscsi-scst/, etc. 4. User space programs in usr/ subdirectory, like fileio_tgt. 5. Some various docs in doc/ subdirectory. Those subprojects are in most cases independent from each other, although some of them depend from the SCST core. They put in the single repository only to simplify their development, they are released independently. Thus, use "make all" only if you really need to build everything. Otherwise build only what you need, like for iSCSI-SCST: make scst scst_install iscsi iscsi_install For more information about each subproject see their README files. Vladislav Bolkhovitin <vst@vlnb.net>, http://scst.sourceforge.net
Description
Languages
C
90.1%
Perl
4.2%
Shell
1.8%
HTML
1.7%
Makefile
1.2%
Other
0.9%