{"action":"created","issue":{"url":"https://api.github.com/repos/bvanassche/ib_srp-backport/issues/2","labels_url":"https://api.github.com/repos/bvanassche/ib_srp-backport/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/bvanassche/ib_srp-backport/issues/2/comments","events_url":"https://api.github.com/repos/bvanassche/ib_srp-backport/issues/2/events","html_url":"https://github.com/bvanassche/ib_srp-backport/issues/2","id":94943771,"number":2,"title":"ib_srp/srp_daemon uninterruptible sleep","user":{"login":"Alukardd","id":1387587,"avatar_url":"https://avatars.githubusercontent.com/u/1387587?v=3","gravatar_id":"","url":"https://api.github.com/users/Alukardd","html_url":"https://github.com/Alukardd","followers_url":"https://api.github.com/users/Alukardd/followers","following_url":"https://api.github.com/users/Alukardd/following{/other_user}","gists_url":"https://api.github.com/users/Alukardd/gists{/gist_id}","starred_url":"https://api.github.com/users/Alukardd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alukardd/subscriptions","organizations_url":"https://api.github.com/users/Alukardd/orgs","repos_url":"https://api.github.com/users/Alukardd/repos","events_url":"https://api.github.com/users/Alukardd/events{/privacy}","received_events_url":"https://api.github.com/users/Alukardd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-14T13:20:55Z","updated_at":"2015-07-14T16:48:22Z","closed_at":null,"body":"Hello.\r\n\r\nI have strange issue.\r\n\r\nAfter boot I got suspended srp_daemon and ib_srp module.\r\n```\r\n[Mon Jul 13 18:16:01 2015] srp_daemon      D ffff880be35fa8f0     0 20491      1 0x00000000\r\n[Mon Jul 13 18:16:01 2015]  ffff880be35fa8f0 0000000000000000 ffff880c097ae150 0000000000013b40\r\n[Mon Jul 13 18:16:01 2015]  0000000000013b40 ffff880be35fa8f0 ffff8800bad5ffd8 0000000000000000\r\n[Mon Jul 13 18:16:01 2015]  7fffffffffffffff 7fffffffffffffff 0000000000000002 ffff8818047ba870\r\n[Mon Jul 13 18:16:01 2015] Call Trace:\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff813e20e6>] ? console_conditional_schedule+0xf/0xf\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff813e2102>] ? schedule_timeout+0x1c/0xec\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff813e28d7>] ? _raw_spin_lock_irq+0xa/0x15\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff813e0e9c>] ? __wait_for_common+0x124/0x163\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff81069d57>] ? try_to_wake_up+0x1a8/0x1a8\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff813e2903>] ? _raw_spin_unlock_irqrestore+0xc/0xd\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffffa04f4e9b>] ? srp_destroy_qp+0xe5/0xee [ib_srp]\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffffa04f54d4>] ? srp_free_ch_ib+0x97/0x14f [ib_srp]\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffffa04f923b>] ? srp_create_target+0xa2c/0xac5 [ib_srp]\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff811394fc>] ? path_cleanup+0x1a/0x33\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff8113d370>] ? path_openat+0x418/0x46d\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff81121361>] ? __kmalloc+0xe5/⁠0xf7\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff81186a25>] ? kernfs_fop_write+0x60/0x128\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff81186aa1>] ? kernfs_fop_write+0xdc/0x128\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff811323f2>] ? vfs_write+0x9c/⁠0x11e\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff8113263c>] ? SyS_write+0x51/⁠0x85\r\n[Mon Jul 13 18:16:01 2015]  [<ffffffff813e2ce9>] ? system_call_fastpath+0x12/0x17\r\n```\r\nAlso I saw this lines before \"D\" state:\r\n```\r\n[Tue Jul 14 10:56:30 2015] scsi host5: ib_srp: REJ received\r\n[Tue Jul 14 10:56:30 2015] scsi host5:   REJ reason: stale connection\r\n[Tue Jul 14 10:56:30 2015] scsi host5: ib_srp: giving up on stale connection\r\n[Tue Jul 14 10:56:30 2015] scsi host5: ib_srp: Connection 0/2 failed\r\n```\r\nI have:\r\n  InfiniBand: QLogic Corp. IBA7322 QDR InfiniBand HCA (rev 02)\r\n\r\n  linux 3.19.1\r\n  ib_srp 2.0.32 (also try with built-⁠in ib_srp)\r\n  ib_qib 1.11 (built-⁠in)\r\n\r\nWhen I  booted back in old configuration all works fine.\r\n  linux 3.10.61\r\n  ib_srp 2.0.26\r\n  ib_qib 1.11 (built-⁠in)\r\n\r\nAfter successful boot in old configuration first boot in new configuration may be fine but may be bad. All next attempts to boot in new configuration give the same issue.\r\n\r\nDescribed configuration with linux 3.19.1 works fine in other locations, except they have different IB card (InfiniBand: Mellanox Technologies MT26428 [ConnectX VPI PCIe 2.0 5GT/s - IB QDR / 10GigE] (rev b0).\r\n\r\n\r\n\r\n**Actions for successful boot**\r\nI can successfully boot and attach disks from targets if I manually delete session from all targets during the initiator rebooting.\r\n - power off initiator\r\n - for all paths of all targets — ```echo 1 > /sys/kernel/scst_tgt/targets/ib_srpt/<TARGET_GUID>/sessions/<INITIATOR GUID>/force_close```\r\n - waiting until path will be deleted\r\n - power on initiator\r\n - profit!"},"comment":{"url":"https://api.github.com/repos/bvanassche/ib_srp-backport/issues/comments/121305520","html_url":"https://github.com/bvanassche/ib_srp-backport/issues/2#issuecomment-121305520","issue_url":"https://api.github.com/repos/bvanassche/ib_srp-backport/issues/2","id":121305520,"user":{"login":"Alukardd","id":1387587,"avatar_url":"https://avatars.githubusercontent.com/u/1387587?v=3","gravatar_id":"","url":"https://api.github.com/users/Alukardd","html_url":"https://github.com/Alukardd","followers_url":"https://api.github.com/users/Alukardd/followers","following_url":"https://api.github.com/users/Alukardd/following{/other_user}","gists_url":"https://api.github.com/users/Alukardd/gists{/gist_id}","starred_url":"https://api.github.com/users/Alukardd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alukardd/subscriptions","organizations_url":"https://api.github.com/users/Alukardd/orgs","repos_url":"https://api.github.com/users/Alukardd/repos","events_url":"https://api.github.com/users/Alukardd/events{/privacy}","received_events_url":"https://api.github.com/users/Alukardd/received_events","type":"User","site_admin":false},"created_at":"2015-07-14T16:48:22Z","updated_at":"2015-07-14T16:48:22Z","body":"It seems that this commit in linux kernel tree solve this issue, but we want to test it a little more.\r\n\r\ncommit db2b084cd0e1fd7f98b0b82965b2d6581bc79e02\r\nAuthor: Moshe Lazer <moshel@mellanox.com>\r\nDate:   Thu Feb 5 13:53:52 2015 +0200"}}