Welcome To openEuler Community
Hey @shangbaogen , thanks for your contribution to the community.
Bot Usage Manual
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here . That means you can comment below every pull request or issue to trigger Bot Commands.
Contact Guide
If you have any questions, please contact the SIG: Kernel ,
and any of the maintainers: @hanjunguo, @oekernel, @sanglipeng, @zeng_zhaorong, @zhengzengkai ,
and any of the committers: @CTC-XiboWang, @GongLei-, @LiuYongQiang0816, @SuperSix173, @Tankll2021, @TrueAI, @allen-shi, @baratta, @caixu-blue, @chenjiesong, @chenjunxin1992, @chenke2026, @chiqijun, @chriszjh, @duanqiangwen, @fangfeng123, @fanghaiqinghw, @gaojuxin09, @gouhao2022, @guzitao, @hanjunguo, @hanliyang, @hellotcc, @hjx_gitff, @hongwu-wang, @htforge, @hu-chunzhi, @hunan4222, @jackknight, @jerry_lilijun, @junlong-zheng, @juntianlinux, @kailiu42, @kaitiandu, @kazero00, @kevinzhu1, @kile2009, @koishimind, @kongzizaixian, @leoliu-oc, @li-huisong, @linan888, @linyunsheng, @liulongfang, @lostway1, @lujialin2, @markyuan4ta21, @mingqian218472, @mufengyan, @qinirao, @robinorg, @rock_hw, @sanglipeng, @shu-shengming, @shuaijiakun, @sming56_admin, @stavewu, @stkid, @wangboe2022, @wenzhiwei11, @whoisxxx, @wkfxxx, @woqidaideshi, @wsoydl, @xingmz1, @xukuohai, @yeweihua999, @ygn-ndwd-official, @yonghu_4dc5, @young-sun, @yuehaibing_planb, @yuzenghui1, @zhang-changzhong, @zhangyi089, @zhujianwei001, @zichengqu, @zqiao216 .


从上游kernel stale tree v6.6.y分支回合nvme驱动重要的bugfix:
相关的commit如下:
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=f532b29b0e313f42b964014038b0f52899b240ec
上述commit修复了一个可能导致系统deadlock的问题,详细信息如下:
当套接字在TCP_LISTEN状态下关闭时,会运行一个回调函数来刷新所有未处理的数据包,这反过来又会调用
nvmet_tcp_listen_data_ready()函数,并持有sk_callback_lock,根据出现问题时打印的call trace可以看
出,该线程持有锁时调度出了CPU。同样根据call trace可以看出,另外一个线程处理关闭任务的函数
nvmet_tcp_release_queue_work,尝试获取该锁,获取不到后也调度出了CPU。这样就导致任务hang住,
没办法继续往下处理。
详细的call trace和原因分析见如下链接:
https://lore.kernel.org/linux-nvme/CAHj4cs-zu7eVB78yUpFjVe2UqMWFkLk8p+DaS3qj+uiGCXBAoA@mail.gmail.com/
https://lore.kernel.org/linux-nvme/3ab1de01-7a55-4c7b-b183-49618dc93a09@suse.de/
修复的方案如下:
在尝试获取sk_callback_lock() 之前检查是否处于TCP_LISTEN状态,以避免死锁。
该patch比较重要需要移植到olk-6.6分支上.