From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DCE00C43460 for ; Tue, 6 Apr 2021 07:07:04 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B757D61242 for ; Tue, 6 Apr 2021 07:07:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244145AbhDFHHK (ORCPT ); Tue, 6 Apr 2021 03:07:10 -0400 Received: from mx2.suse.de ([195.135.220.15]:60650 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244136AbhDFHHI (ORCPT ); Tue, 6 Apr 2021 03:07:08 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id B3F3FAFAA; Tue, 6 Apr 2021 07:06:59 +0000 (UTC) Received: by lion.mk-sys.cz (Postfix, from userid 1000) id 1809D60441; Tue, 6 Apr 2021 09:06:59 +0200 (CEST) Date: Tue, 6 Apr 2021 09:06:59 +0200 From: Michal Kubecek To: Yunsheng Lin Cc: Jiri Kosina , Hillf Danton , John Fastabend , Cong Wang , Paolo Abeni , Kehuan Feng , Jike Song , Jonas Bonn , Michael Zhivich , David Miller , LKML , Netdev , Josh Hunt Subject: Re: Packet gets stuck in NOLOCK pfifo_fast qdisc Message-ID: <20210406070659.t6csfgkskbmmxtx5@lion.mk-sys.cz> References: <20200827125747.5816-1-hdanton@sina.com> <5f51cbad3cc2_3eceb208fc@john-XPS-13-9370.notmuch> <20210403003537.2032-1-hdanton@sina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Apr 06, 2021 at 08:55:41AM +0800, Yunsheng Lin wrote: > > Hi, Jiri > Do you have a reproducer that can be shared here? > With reproducer, I can debug and test it myself too. I'm afraid we are not aware of a simple reproducer. As mentioned in the original discussion, the race window is extremely small and the other thread has to do quite a lot in the meantime which is probably why, as far as I know, this was never observed on real hardware, only in virtualization environments. NFS may also be important as, IIUC, it can often issue an RPC request from a different CPU right after a data transfer. Perhaps you could cheat a bit and insert a random delay between the empty queue check and releasing q->seqlock to make it more likely to happen. Other than that, it's rather just "run this complex software in a xen VM and wait". Michal