120 sec kernel timeout is seen during SCSI remove_device.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
open-iscsi (Ubuntu) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Ubuntu Release
--------------
#lsb_release -rd
Description: Ubuntu 18.04.5 LTS
Release: 18.04
#cat /proc/version_
Ubuntu 4.15.0-
Package version
---------------
#apt-cache policy open-iscsi
open-iscsi:
Installed: 2.0.874-5ubuntu2.10
Candidate: 2.0.874-5ubuntu2.10
Problem statement and details
-------
During the automation testing of vendor's iSCSI target using Open-iscsi initiator, Initiator host reported 120 second kernel hang issue. The automation test was doing SCSI remove_device operation when the issue observered.
Automation test perform following sequence of operations,
1. Establish iSCSI session
2. Create bunch of iSCSI LUNs.
3. Discover LUNs through sysfs scan
4. Format LUNs
5. Perform IO
6. Remove LUN
7. Delete LUN
Observations from initiator host:
1. Already discovered iSCSI LUNs went to offline state.
2. New LUNs are not being discovered.
3. NOP-in/NOP-out PDU exchange works fine from the iSCSI session.
Note: Single iSCSI session is present between initiator and target.
Expected behavior
-----------------
SCSI remove_device should succeed and automation test should continue.
Issue is observed even with following commit, which has fix for similar issue.
https:/
Stack trace
-----------
[91832.800739] "echo 0 > /proc/sys/
[91832.809982] Call Trace:
[91832.809994] __schedule+
[91832.810002] ? __enqueue_
[91832.810006] ? select_
[91832.810008] schedule+0x2c/0x80
[91832.810010] schedule_
[91832.810012] __mutex_
[91832.810017] ? kernfs_
[91832.810020] __mutex_
[91832.810021] ? __mutex_
[91832.810023] mutex_lock+
[91832.810030] scsi_remove_
[91832.810033] sdev_store_
[91832.810036] dev_attr_
[91832.810039] sysfs_kf_
[91832.810040] kernfs_
[91832.810046] __vfs_write+
[91832.810048] vfs_write+
[91832.810050] SyS_write+0x5c/0xe0
[91832.810055] do_syscall_
[91832.810058] entry_SYSCALL_
information type: | Public → Private |
description: | updated |
information type: | Private → Public |
Changed in open-iscsi (Ubuntu): | |
assignee: | Guilherme G. Piccoli (gpiccoli) → nobody |
Status changed to 'Confirmed' because the bug affects multiple users.