Hello, after disconnecting my srp initiator and trying to shut down the target I end up with a hung/stale system, I have experienced this on both 3.13.0 and 3.10.25 Here is the dmesg [170319.904119] Received DREQ and sent DREP for session 0x00000000000000000002c9030005566e. [170321.960898] Received IB TimeWait exit for cm_id ffff88046c72da00. [170321.960993] Session 0x00000000000000000002c9030005566e: kernel thread ib_srpt_compl (PID 9208) stopped [170564.275488] INFO: task tcm_fabric:14473 blocked for more than 120 seconds. [170564.275491] Not tainted 3.13.0-gentoo-r1 #1 [170564.275492] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [170564.275493] tcm_fabric D ffff88047fdd2d00 0 14473 14444 0x00000004 [170564.275496] ffff880372806790 0000000000000002 ffff88046f2e9810 ffff880406b5449f [170564.275499] 0000000000012d00 ffff880395b35fd8 0000000000012d00 ffff880372806790 [170564.275501] ffff880406b54110 ffff880312b94420 ffff880312b94428 7fffffffffffffff [170564.275503] Call Trace: [170564.275510] [<ffffffff817335ba>] ? schedule_timeout+0x17a/0x1e0 [170564.275514] [<ffffffff810923a3>] ? enqueue_task_fair+0x1b3/0xa90 [170564.275516] [<ffffffff8173507d>] ? wait_for_completion+0x9d/0x110 [170564.275519] [<ffffffff8108c790>] ? try_to_wake_up+0x280/0x280 [170564.275527] [<ffffffffa01129f6>] ? transport_clear_lun_ref+0x46/0x70 [target_core_mod] [170564.275532] [<ffffffffa010d687>] ? core_tpg_post_dellun+0x27/0x60 [target_core_mod] [170564.275537] [<ffffffffa00ffc65>] ? core_dev_del_lun+0x35/0xb0 [target_core_mod] [170564.275542] [<ffffffffa01018e3>] ? target_fabric_port_unlink+0x43/0x60 [target_core_mod] [170564.275545] [<ffffffff811c870e>] ? configfs_unlink+0xee/0x1c0 [170564.275549] [<ffffffff8116331a>] ? vfs_unlink+0xda/0x160 [170564.275551] [<ffffffff811635ce>] ? do_unlinkat+0x22e/0x260 [170564.275554] [<ffffffff810105d5>] ? syscall_trace_enter+0x115/0x1c0 [170564.275557] [<ffffffff81737ae1>] ? tracesys+0xd4/0xd9 [170564.275558] INFO: task tcm_cl_9:14504 blocked for more than 120 seconds. [170564.275559] Not tainted 3.13.0-gentoo-r1 #1 [170564.275560] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [170564.275561] tcm_cl_9 D ffff88047fcd2d00 0 14504 2 0x00000000 [170564.275563] ffff880406b54110 0000000000000002 ffff88046f2e5790 0000000300000000 [170564.275565] 0000000000012d00 ffff8803cfedbfd8 0000000000012d00 ffff880406b54110 [170564.275567] ffff88047fccd0d0 ffff880312b94690 ffff880312b94698 7fffffffffffffff [170564.275570] Call Trace: [170564.275572] [<ffffffff817335ba>] ? schedule_timeout+0x17a/0x1e0 [170564.275574] [<ffffffff8108f8c2>] ? arch_vtime_task_switch+0x62/0x80 [170564.275576] [<ffffffff81087785>] ? finish_task_switch+0xa5/0xe0 [170564.275579] [<ffffffff8173507d>] ? wait_for_completion+0x9d/0x110 [170564.275581] [<ffffffff8108c790>] ? try_to_wake_up+0x280/0x280 [170564.275584] [<ffffffffa010dc50>] ? target_complete_nacl+0x10/0x10 [target_core_mod] [170564.275588] [<ffffffffa010dc6e>] ? transport_clear_lun_ref_thread+0x1e/0x30 [target_core_mod] [170564.275590] [<ffffffff8107f59c>] ? kthread+0xbc/0xe0 [170564.275593] [<ffffffff81080000>] ? cpu_clock_sample_group+0x60/0xa0 [170564.275594] [<ffffffff8107f4e0>] ? flush_kthread_worker+0x80/0x80 [170564.275596] [<ffffffff817378bc>] ? ret_from_fork+0x7c/0xb0 [170564.275598] [<ffffffff8107f4e0>] ? flush_kthread_worker+0x80/0x80 [170684.380870] INFO: task tcm_fabric:14473 blocked for more than 120 seconds. [170684.380872] Not tainted 3.13.0-gentoo-r1 #1 [170684.380873] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [170684.380874] tcm_fabric D ffff88047fdd2d00 0 14473 14444 0x00000004 [170684.380876] ffff880372806790 0000000000000002 ffff88046f2e9810 ffff880406b5449f [170684.380879] 0000000000012d00 ffff880395b35fd8 0000000000012d00 ffff880372806790 [170684.380881] ffff880406b54110 ffff880312b94420 ffff880312b94428 7fffffffffffffff [170684.380883] Call Trace: [170684.380887] [<ffffffff817335ba>] ? schedule_timeout+0x17a/0x1e0 [170684.380889] [<ffffffff810923a3>] ? enqueue_task_fair+0x1b3/0xa90 [170684.380891] [<ffffffff8173507d>] ? wait_for_completion+0x9d/0x110 [170684.380893] [<ffffffff8108c790>] ? try_to_wake_up+0x280/0x280 [170684.380898] [<ffffffffa01129f6>] ? transport_clear_lun_ref+0x46/0x70 [target_core_mod] [170684.380902] [<ffffffffa010d687>] ? core_tpg_post_dellun+0x27/0x60 [target_core_mod] [170684.380906] [<ffffffffa00ffc65>] ? core_dev_del_lun+0x35/0xb0 [target_core_mod] [170684.380909] [<ffffffffa01018e3>] ? target_fabric_port_unlink+0x43/0x60 [target_core_mod] [170684.380912] [<ffffffff811c870e>] ? configfs_unlink+0xee/0x1c0 [170684.380914] [<ffffffff8116331a>] ? vfs_unlink+0xda/0x160 [170684.380916] [<ffffffff811635ce>] ? do_unlinkat+0x22e/0x260 [170684.380918] [<ffffffff810105d5>] ? syscall_trace_enter+0x115/0x1c0 [170684.380920] [<ffffffff81737ae1>] ? tracesys+0xd4/0xd9 [170684.380922] INFO: task tcm_cl_9:14504 blocked for more than 120 seconds. [170684.380923] Not tainted 3.13.0-gentoo-r1 #1 [170684.380924] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [170684.380925] tcm_cl_9 D ffff88047fcd2d00 0 14504 2 0x00000000 [170684.380927] ffff880406b54110 0000000000000002 ffff88046f2e5790 0000000300000000 [170684.380929] 0000000000012d00 ffff8803cfedbfd8 0000000000012d00 ffff880406b54110 [170684.380931] ffff88047fccd0d0 ffff880312b94690 ffff880312b94698 7fffffffffffffff [170684.380933] Call Trace: [170684.380935] [<ffffffff817335ba>] ? schedule_timeout+0x17a/0x1e0 [170684.380938] [<ffffffff8108f8c2>] ? arch_vtime_task_switch+0x62/0x80 [170684.380940] [<ffffffff81087785>] ? finish_task_switch+0xa5/0xe0 [170684.380942] [<ffffffff8173507d>] ? wait_for_completion+0x9d/0x110 [170684.380944] [<ffffffff8108c790>] ? try_to_wake_up+0x280/0x280 [170684.380948] [<ffffffffa010dc50>] ? target_complete_nacl+0x10/0x10 [target_core_mod] [170684.380951] [<ffffffffa010dc6e>] ? transport_clear_lun_ref_thread+0x1e/0x30 [target_core_mod] [170684.380953] [<ffffffff8107f59c>] ? kthread+0xbc/0xe0 [170684.380955] [<ffffffff81080000>] ? cpu_clock_sample_group+0x60/0xa0 [170684.380957] [<ffffffff8107f4e0>] ? flush_kthread_worker+0x80/0x80 [170684.380959] [<ffffffff817378bc>] ? ret_from_fork+0x7c/0xb0 [170684.380960] [<ffffffff8107f4e0>] ? flush_kthread_worker+0x80/0x80 [170804.486260] INFO: task tcm_fabric:14473 blocked for more than 120 seconds. [170804.486263] Not tainted 3.13.0-gentoo-r1 #1 [170804.486264] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [170804.486265] tcm_fabric D ffff88047fdd2d00 0 14473 14444 0x00000004 [170804.486268] ffff880372806790 0000000000000002 ffff88046f2e9810 ffff880406b5449f [170804.486271] 0000000000012d00 ffff880395b35fd8 0000000000012d00 ffff880372806790 [170804.486273] ffff880406b54110 ffff880312b94420 ffff880312b94428 7fffffffffffffff [170804.486275] Call Trace: [170804.486282] [<ffffffff817335ba>] ? schedule_timeout+0x17a/0x1e0 [170804.486285] [<ffffffff810923a3>] ? enqueue_task_fair+0x1b3/0xa90 [170804.486288] [<ffffffff8173507d>] ? wait_for_completion+0x9d/0x110 [170804.486291] [<ffffffff8108c790>] ? try_to_wake_up+0x280/0x280 [170804.486299] [<ffffffffa01129f6>] ? transport_clear_lun_ref+0x46/0x70 [target_core_mod] [170804.486304] [<ffffffffa010d687>] ? core_tpg_post_dellun+0x27/0x60 [target_core_mod] [170804.486309] [<ffffffffa00ffc65>] ? core_dev_del_lun+0x35/0xb0 [target_core_mod] [170804.486313] [<ffffffffa01018e3>] ? target_fabric_port_unlink+0x43/0x60 [target_core_mod] [170804.486317] [<ffffffff811c870e>] ? configfs_unlink+0xee/0x1c0 [170804.486321] [<ffffffff8116331a>] ? vfs_unlink+0xda/0x160 [170804.486323] [<ffffffff811635ce>] ? do_unlinkat+0x22e/0x260 [170804.486326] [<ffffffff810105d5>] ? syscall_trace_enter+0x115/0x1c0 [170804.486329] [<ffffffff81737ae1>] ? tracesys+0xd4/0xd9 [170804.486330] INFO: task tcm_cl_9:14504 blocked for more than 120 seconds. [170804.486331] Not tainted 3.13.0-gentoo-r1 #1 [170804.486332] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [170804.486333] tcm_cl_9 D ffff88047fcd2d00 0 14504 2 0x00000000 [170804.486335] ffff880406b54110 0000000000000002 ffff88046f2e5790 0000000300000000 [170804.486337] 0000000000012d00 ffff8803cfedbfd8 0000000000012d00 ffff880406b54110 [170804.486339] ffff88047fccd0d0 ffff880312b94690 ffff880312b94698 7fffffffffffffff [170804.486341] Call Trace: [170804.486344] [<ffffffff817335ba>] ? schedule_timeout+0x17a/0x1e0 [170804.486346] [<ffffffff8108f8c2>] ? arch_vtime_task_switch+0x62/0x80 [170804.486348] [<ffffffff81087785>] ? finish_task_switch+0xa5/0xe0 [170804.486350] [<ffffffff8173507d>] ? wait_for_completion+0x9d/0x110 [170804.486352] [<ffffffff8108c790>] ? try_to_wake_up+0x280/0x280 [170804.486356] [<ffffffffa010dc50>] ? target_complete_nacl+0x10/0x10 [target_core_mod] [170804.486360] [<ffffffffa010dc6e>] ? transport_clear_lun_ref_thread+0x1e/0x30 [target_core_mod] [170804.486362] [<ffffffff8107f59c>] ? kthread+0xbc/0xe0 [170804.486364] [<ffffffff81080000>] ? cpu_clock_sample_group+0x60/0xa0 [170804.486366] [<ffffffff8107f4e0>] ? flush_kthread_worker+0x80/0x80 [170804.486368] [<ffffffff817378bc>] ? ret_from_fork+0x7c/0xb0 [170804.486370] [<ffffffff8107f4e0>] ? flush_kthread_worker+0x80/0x80 -- /Tommy -- 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