iSCSI-target: Deleting a LUN hangs in the kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Eoan |
Fix Released
|
Medium
|
Unassigned |
Bug Description
The issue is that deleting a LUN on the target will hang until IO is attempted to this LUN from the initiator.
This issue was introduced when linux-image-
We can see a hung task message in dmesg:
[ 1330.438613] INFO: task iscsicmd:24572 blocked for more than 120 seconds.
[ 1330.439554] Tainted: P OE 5.3.0-26-generic #28~18.04.1-Ubuntu
[ 1330.440594] "echo 0 > /proc/sys/
[ 1330.441666] iscsicmd D 0 24572 8910 0x00000080
[ 1330.441668] Call Trace:
[ 1330.441674] __schedule+
[ 1330.441676] schedule+0x33/0xa0
[ 1330.441678] schedule_
[ 1330.441682] ? __kfifo_
[ 1330.441684] wait_for_
[ 1330.441688] ? wake_up_q+0x80/0x80
[ 1330.441704] transport_
[ 1330.441711] core_tpg_
[ 1330.441716] core_dev_
[ 1330.441721] target_
[ 1330.441724] configfs_
[ 1330.441727] vfs_unlink+
[ 1330.441729] do_unlinkat+
[ 1330.441731] __x64_sys_
[ 1330.441734] do_syscall_
[ 1330.441736] entry_SYSCALL_
(iscsicmd is a cli tool I created that is similar to targetcli)
You can find more details about this bug and the reproducer on this linux kernel discussion thread: https:/
A patch has been already submitted by an iSCSI-target developer, although not yet integrated. (https:/
Would it be possible to get this patch integrated into the linux-image-
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: linux-image-
ProcVersionSign
Uname: Linux 5.3.0-28-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.9
Architecture: amd64
Date: Mon Feb 10 18:41:12 2020
ProcEnviron:
TERM=xterm-
PATH=(custom, no user)
XDG_RUNTIME_
LANG=C.UTF-8
SHELL=/bin/bash
SourcePackage: linux-meta-hwe
UpgradeStatus: No upgrade log present (probably fresh install)
affects: | linux-meta-hwe (Ubuntu) → linux-hwe (Ubuntu) |
tags: | added: patch |
affects: | linux-hwe (Ubuntu) → linux (Ubuntu) |
Changed in linux (Ubuntu Eoan): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in linux (Ubuntu): | |
status: | Confirmed → Fix Released |
Changed in linux (Ubuntu Eoan): | |
status: | Triaged → Fix Committed |
Added a patch for the upstream fix (upstream commit: c14335ebb92a986 46ddbf447e6cacc 66de5269ad) .