When runing the libiscsi test suite from git://github.com/sahlberg/libiscsi I get a hang early on with the target/for-next branch: root@vm:~/libiscsi# ./test-tool/iscsi-test-cu --test LINUX.*.* /dev/sg3 --dataloss [SKIPPED] REPORT_SUPPORTED_OPCODES is not implemented. Bus transfer size is limited to 33550336 bytes. Clamping max transfers accordingly. CUnit - A Unit testing framework for C - Version 2.1-0 http://cunit.sourceforge.net/ Suite: CompareAndWrite Test: Simple ... [ 109.370294] ABORT_TASK: Found referenced loopback task_tag: 0 [ 109.370854] ABORT_TASK: ref_tag: 0 already complete, skipping [ 109.371381] ABORT_TASK: Sending TMR_TASK_DOES_NOT_EXIST for ref_tag: 0 [FAILED] Failed to send COMPAREANDWRITE command: SCSI driver error FAILED 1. test_compareandwrite_simple.c:99 - CU_ASSERT_EQUAL(ret,0) 2. test_compareandwrite_simple.c:113 - CU_FAIL("Block was not written correctly") Test: DpoFua ... [ 109.374181] TARGET_CORE[loopback]: Expected Transfer Length: 512 does not match SCSI CDB Length: 0 for SAM Opcode: 0x89 [ 109.376482] Rejecting underflow/overflow WRITE data [FAILED] COMPAREANDWRITE command failed with sense. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_FIELD_IN_CDB(0x2400) [ 109.378184] TARGET_CORE[loopback]: Expected Transfer Length: 512 does not match SCSI CDB Length: 0 for SAM Opcode: 0x89 [ 109.379390] Rejecting underflow/overflow WRITE data [FAILED] COMPAREANDWRITE command failed with sense. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_FIELD_IN_CDB(0x2400) [ 109.380694] TARGET_CORE[loopback]: Expected Transfer Length: 512 does not match SCSI CDB Length: 0 for SAM Opcode: 0x89 [ 109.381881] Rejecting underflow/overflow WRITE data [FAILED] COMPAREANDWRITE command failed with sense. SENSE KEY:ILLEGAL_REQUEST(5) ASCQ:INVALID_FIELD_IN_CDB(0x2400) [SKIPPED] REPORT_SUPPORTED_OPCODES is not implemented. REPORT_SUPPORTED_OPCODES not implemented. Skipping this part of the test FAILED 1. test_compareandwrite_dpofua.c:67 - CU_ASSERT_EQUAL(ret,0) 2. test_compareandwrite_dpofua.c:80 - CU_ASSERT_EQUAL(ret,0) 3. test_compareandwrite_dpofua.c:93 - CU_ASSERT_EQUAL(ret,0) Test: Miscompare ... [ 115.370134] ABORT_TASK: Found referenced loopback task_tag: 0 [ 115.372106] INFO: trying to register non-static key. [ 115.373367] the code is fine but needs lockdep annotation. [ 115.373367] turning off the locking correctness validator. [ 115.373367] CPU: 0 PID: 1377 Comm: kworker/u2:2 Not tainted 4.0.0-rc1+ #192 [ 115.373367] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2007 [ 115.373367] Workqueue: tmr-iblock target_tmr_work [ 115.373367] ffff8800000505d0 ffff88007ad33a38 ffffffff81e37aac 0000000000000000 [ 115.373367] ffffffff83368ad0 ffff88007ad33b28 ffffffff811033f9 0000000082521ec0 [ 115.373367] ffffffff824c09e0 000000000000001e 0000000000000000 ffff880000000000 [ 115.373367] Call Trace: [ 115.373367] [<ffffffff81e37aac>] dump_stack+0x45/0x57 [ 115.373367] [<ffffffff811033f9>] __lock_acquire+0x15e9/0x1e20 [ 115.373367] [<ffffffff810de9ed>] ? __atomic_notifier_call_chain+0x7d/0xa0 [ 115.373367] [<ffffffff810de970>] ? raw_notifier_call_chain+0x20/0x20 [ 115.373367] [<ffffffff81e422d6>] ? _raw_spin_unlock+0x26/0x30 [ 115.373367] [<ffffffff811041ff>] lock_acquire+0x9f/0x120 [ 115.373367] [<ffffffff810d6fd0>] ? insert_work+0xb0/0xb0 [ 115.373367] [<ffffffff810d7008>] flush_work+0x38/0x260 [ 115.373367] [<ffffffff810d6fd0>] ? insert_work+0xb0/0xb0 [ 115.373367] [<ffffffff81104bcd>] ? trace_hardirqs_on_caller+0x10d/0x1d0 [ 115.373367] [<ffffffff8179d5be>] ? trace_hardirqs_on_thunk+0x3a/0x3f [ 115.373367] [<ffffffff81104a9a>] ? mark_held_locks+0x6a/0x90 [ 115.373367] [<ffffffff810d848f>] ? __cancel_work_timer+0x6f/0x120 [ 115.373367] [<ffffffff81104bcd>] ? trace_hardirqs_on_caller+0x10d/0x1d0 [ 115.373367] [<ffffffff810d84a2>] __cancel_work_timer+0x82/0x120 [ 115.373367] [<ffffffff81e4231f>] ? _raw_spin_unlock_irqrestore+0x3f/0x70 [ 115.373367] [<ffffffff810d855b>] cancel_work_sync+0xb/0x10 [ 115.373367] [<ffffffff81abd708>] core_tmr_abort_task+0x148/0x210 [ 115.373367] [<ffffffff81ac022f>] target_tmr_work+0xbf/0xe0 [ 115.373367] [<ffffffff810d7f84>] process_one_work+0x1a4/0x450 [ 115.373367] [<ffffffff810d7f13>] ? process_one_work+0x133/0x450 [ 115.373367] [<ffffffff810d8ce9>] worker_thread+0x119/0x420 [ 115.373367] [<ffffffff810d8bd0>] ? init_pwq+0x190/0x190 [ 115.373367] [<ffffffff810dd94f>] kthread+0xdf/0x100 [ 115.373367] [<ffffffff810dd870>] ? __init_kthread_worker+0x70/0x70 [ 115.373367] [<ffffffff81e427bc>] ret_from_fork+0x7c/0xb0 [ 115.373367] [<ffffffff810dd870>] ? __init_kthread_worker+0x70/0x70 [ 240.153458] INFO: task kworker/u2:0:6 blocked for more than 120 seconds. [ 240.154078] Not tainted 4.0.0-rc1+ #192 [ 240.154547] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [ 240.155289] kworker/u2:0 D ffff88007d53bc68 0 6 2 0x00000000 [ 240.155989] Workqueue: scsi_tmf_3 scmd_eh_abort_handler [ 240.156512] ffff88007d53bc68 ffff88007d53bc28 ffffffff81104c9d ffff8800000505d0 [ 240.157428] ffff88007d534150 ffff88007d53bcc0 ffff88007d53bfd8 ffff88007c7127d0 [ 240.158407] ffff88007c7127c0 ffff88007ccbff48 0000000000000003 ffff88007d53bc88 [ 240.159413] Call Trace: [ 240.159714] [<ffffffff81104c9d>] ? trace_hardirqs_on+0xd/0x10 [ 240.160247] [<ffffffff81e3d302>] schedule+0x32/0x80 [ 240.160714] [<ffffffff81ad4525>] tcm_loop_issue_tmr+0x125/0x1e0 [ 240.161253] [<ffffffff81e4237b>] ? _raw_spin_unlock_irq+0x2b/0x40 [ 240.161797] [<ffffffff810f99b0>] ? __init_waitqueue_head+0x60/0x60 [ 240.162346] [<ffffffff81ad4678>] tcm_loop_abort_task+0x48/0x60 [ 240.162872] [<ffffffff81999433>] scmd_eh_abort_handler+0xd3/0x2a0 [ 240.163423] [<ffffffff810d7f84>] process_one_work+0x1a4/0x450 [ 240.163943] [<ffffffff810d7f13>] ? process_one_work+0x133/0x450 [ 240.164472] [<ffffffff810d8ce9>] worker_thread+0x119/0x420 [ 240.164975] [<ffffffff810d8bd0>] ? init_pwq+0x190/0x190 [ 240.165592] [<ffffffff810dd94f>] kthread+0xdf/0x100 [ 240.166168] [<ffffffff810dd870>] ? __init_kthread_worker+0x70/0x70 [ 240.166865] [<ffffffff81e427bc>] ret_from_fork+0x7c/0xb0 [ 240.167477] [<ffffffff810dd870>] ? __init_kthread_worker+0x70/0x70 -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html