From: <ivanov.maxim@gmail.com>
To: "dm-devel@redhat.com" <dm-devel@redhat.com>
Subject: kworker spins on iSCSI session logout with multipath running
Date: Fri, 16 Feb 2018 13:48:59 +0000 [thread overview]
Message-ID: <5a86e14c.0d8bdf0a.7f29.fce8@mx.google.com> (raw)
In-Reply-To: <CALQ-8CJgbRqZxRK2ZAxVfZgq+8Tohbj7XL+Cpk9Mr=nP-vk_6Q@mail.gmail.com>
[-- Attachment #1.1: Type: text/plain, Size: 1987 bytes --]
Hello All,
I am investigating strange behaviour described here
https://github.com/coreos/bugs/issues/2357 and would like to ask for
help/advice to diagnose it further.
It all boils down to kworker spinning 100% of CPU per iSCSI portal,
when logging out from iSCSI sessions. It happens only if multipathd is
running or had run and created multipath devices. No problem occur if
I mask multipathd, reboot, wait for all scsi devices to be discovered
and attempt to logout.
1. start server, login to all iscsi portals, no need to mount anything
2. logout from all or one session. logging out from one sometimes
work, but more often does not. Logging out from all simultaneously
triggers problem 100% of the time.
3. every iSCSI session we had befor makes kworker to spin. In my
case there are 4 portals to NetApp. `l > /proc/sysrq-trigger` shows
following stack traces per kworker spinning:
[19806.968333] Call Trace:
[19806.968347] scsi_remove_device+0x19/0x60 [scsi_mod]
[19806.968354] scsi_remove_target+0x167/0x1b0 [scsi_mod]
[19806.968355] iscsi_free_session+0x383/0x430 [scsi_transport_iscsi]
[19806.968366] process_one_work+0x144/0x350
[19806.968367] worker_thread+0x4d/0x3e0
[19806.968369] kthread+0xfc/0x130
[19806.968370] ? rescuer_thread+0x310/0x310
[19806.968371] ? kthread_park+0x60/0x60
[19806.968372] ? do_syscall_64+0xe9/0x1c0
[19806.968374] ret_from_fork+0x35/0x40
4. if I do `multipath -F; for d in $(iscsiadm -m session -P3 |awk
'/scsi disk/ {print $4}'); do echo 1 > /sys/block/$d/device/delete;
done` before logging out, it works just fine
5. it is reproducible 100% of the time, so I you want me to collect
some data, I can run commands for you :)
Any help is greatly appreciated.
Software versions:
Kernel version is 4.14.16-coreos (CoreOS 1632.2.1)
iscsid version 2.0-873
multipath-tools 0.6.4
no iSCSI offloading
Quick check shows that problem occurred between 4.13.16 and 4.14.0-rc8
[-- Attachment #1.2: Type: text/html, Size: 4420 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2018-02-16 13:48 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-16 7:56 kworker spin on iSCSI session logout with multipath running Max Ivanov
2018-02-16 13:48 ` ivanov.maxim [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5a86e14c.0d8bdf0a.7f29.fce8@mx.google.com \
--to=ivanov.maxim@gmail.com \
--cc=dm-devel@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox