[bug report] WARNING: CPU: 3 PID: 26597 at kernel/sched/fair.c:5629 pick_next_entity+0xf0/0x138

From: Yi Zhang
Date: Wed Oct 09 2024 - 03:14:37 EST


Hi
I found this warning with blktests nvme/tcp on 6.12-rc2, please help
check it and let me know if you need any info/test for it, thanks.

Reproducer:
NVMET_BLKDEV_TYPES=device nvme_trtype=tcp ./check nvme/012

dmesg:
[ 2910.995416] run blktests nvme/012 at 2024-10-09 06:48:52
[ 2911.043544] loop0: detected capacity change from 0 to 2097152
[ 2911.055838] nvmet: adding nsid 1 to subsystem blktests-subsystem-1
[ 2911.071645] nvmet_tcp: enabling port 0 (127.0.0.1:4420)
[ 2911.102768] nvmet: creating nvm controller 1 for subsystem
blktests-subsystem-1 for NQN
nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349.
[ 2911.114744] nvme nvme1: creating 6 I/O queues.
[ 2911.118201] nvme nvme1: mapped 6/0/0 default/read/poll queues.
[ 2911.122261] nvme nvme1: new ctrl: NQN "blktests-subsystem-1", addr
127.0.0.1:4420, hostnqn:
nqn.2014-08.org.nvmexpress:uuid:0f01fb42-9f7f-4856-b0b3-51e60b8de349
[ 2911.738555] XFS (nvme1n1): Mounting V5 Filesystem
4afac222-f0aa-45fb-85a9-395c728796a8
[ 2911.750772] XFS (nvme1n1): Ending clean mount
[ 2954.681335] ------------[ cut here ]------------
[ 2954.682833] se->on_rq
[ 2954.682852] WARNING: CPU: 3 PID: 26597 at kernel/sched/fair.c:5629
pick_next_entity+0xf0/0x138
[ 2954.685560] Modules linked in: nvmet_tcp nvmet nvme_tcp
nvme_fabrics nvme_keyring rpcsec_gss_krb5 auth_rpcgss nfsv4
dns_resolver nfs lockd grace netfs sunrpc btusb btrtl btintel
rtw88_8822ce rtw88_8822c btbcm rtw88_pci rtw88_core vfat mac80211
bluetooth fat realtek libarc4 cfg80211 tegra194_cpufreq at24
dwmac_dwc_qos_eth stmmac_platform stmmac rfkill pcs_xpcs
tegra_bpmp_thermal fuse loop nfnetlink xfs nvme nvme_core mmc_block
tegra_drm crct10dif_ce nvme_auth cec drm_dp_aux_bus rtc_max77686
ghash_ce drm_display_helper sdhci_tegra sdhci_pltfm sha2_ce
sha256_arm64 sha1_ce gpio_keys pwm_fan rtc_tegra sdhci cqhci mmc_core
xhci_tegra i2c_tegra host1x phy_tegra_xusb i2c_tegra_bpmp dm_mirror
dm_region_hash dm_log dm_mod [last unloaded: nvmet]
[ 2954.693944] CPU: 3 UID: 0 PID: 26597 Comm: kworker/3:1H Kdump:
loaded Not tainted 6.12.0-0.rc2.24.eln143.aarch64+64k #1
[ 2954.696725] Workqueue: 0x0 (kblockd)
[ 2954.698045] pstate: 604000c9 (nZCv daIF +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 2954.700731] pc : pick_next_entity+0xf0/0x138
[ 2954.705476] lr : pick_next_entity+0xf0/0x138
[ 2954.709650] sp : ffff80008a9afbe0
[ 2954.713017] x29: ffff80008a9afbe0 x28: 0000000000000000 x27: 0000000000000000
[ 2954.720385] x26: 0000000000000000 x25: ffff70a046bbad08 x24: 0000000000000000
[ 2954.727743] x23: ffff70a046bba400 x22: ffff70a046bba400 x21: ffff70a15d4ef7c0
[ 2954.735090] x20: ffff70a15d4ef8c0 x19: ffff709feebc0080 x18: 0000000000000006
[ 2954.742627] x17: 843609006d9d0400 x16: 0000000000000020 x15: 0000000000000004
[ 2954.749792] x14: 0000000000000002 x13: 0000000000000001 x12: ffffcaa363537e00
[ 2954.757167] x11: ffffcaa363277e58 x10: ffffcaa363537e58 x9 : ffffcaa360d132b0
[ 2954.764505] x8 : 0000000000000001 x7 : 00000000000bffe8 x6 : c0000000ffff7fff
[ 2954.771770] x5 : ffff70a15d463408 x4 : 0000000000000000 x3 : ffffa5fdfa8d0000
[ 2954.778779] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff70a046bba400
[ 2954.786023] Call trace:
[ 2954.789094] pick_next_entity+0xf0/0x138
[ 2954.792446] pick_task_fair+0x54/0xe0
[ 2954.795649] pick_next_task_fair+0x30/0x3e8
[ 2954.799812] __pick_next_task+0x4c/0x228
[ 2954.803810] pick_next_task+0x3c/0x9c0
[ 2954.807757] __schedule+0x404/0x728
[ 2954.810973] schedule+0x3c/0xe0
[ 2954.814376] worker_thread+0x1b0/0x380
[ 2954.818128] kthread+0xf4/0x108
[ 2954.821019] ret_from_fork+0x10/0x20
[ 2954.824755] ---[ end trace 0000000000000000 ]---
[ 2972.284041] XFS (nvme1n1): Unmounting Filesystem
4afac222-f0aa-45fb-85a9-395c728796a8
[ 2972.316858] nvme nvme1: Removing ctrl: NQN "blktests-subsystem-1"



--
Best Regards,
Yi Zhang