Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp3596743rwb; Fri, 20 Jan 2023 19:39:25 -0800 (PST) X-Google-Smtp-Source: AMrXdXuWzDNy88XCj+KkSrLgsM4t7FuGdYWjgKQKsPv1OsVXfTXbN4fYchiGnl0e3ahJ4CE5G8PZ X-Received: by 2002:a17:90a:ca88:b0:228:d8b3:15e4 with SMTP id y8-20020a17090aca8800b00228d8b315e4mr17558044pjt.32.1674272365732; Fri, 20 Jan 2023 19:39:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674272365; cv=none; d=google.com; s=arc-20160816; b=JLz3g22FCGJL7y//c6lUS54c6Ub38RDnfmQH4to/jcT32IhZeIBrThIvb6i6tcZ0zK nvDi9Z6J0NtLZ2ZVKyiG877ZMwHeeRGSbqygv8HHN70gSrn6lTqqFsx8ef+LrxUMJ3XH 9rQXsQ8+gpbF8IXDT2ZDCUHQG1IaZSULxpViV27+KnnM85gsISXzkJTextYi8fsWGluw dImTS+JrcyGJBExJXjU9pSpigERu0LZHlTR8R3lFpVFDI4ibmbU/l7FAxHXDxxn+J/JU 6SJF7Lgoh1T+jatYsLhBifCGztFTQhECwbuXYe6VvcoHSpcBReAs9CicJ0Bp56pslaEO zsuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=+U71JCesAHIL22d0yS6Wl8/ijcxmumFQQE8LWrlzRGE=; b=AR1dhhDNFHqu/54CkJSlvTmzvRhJGh2Tib6aSqLCzpScm85pF9Uw5PkPKm74/UzPMG xFFXNfOI6gjVL/KO1uzpRsr8dq5NIgHKdOZa02ITa6cCyAlq69NnCJeAy+wPx0QY0sWA v5sypQq2Tf4Foz0ByUXLJvTOUZhfesaO1mlvI5lD6jWBt1UREBctwkpbGt9jAkfhTcfZ +xcpURyaqGzwcq5Ickhtjgc+O74Pz/+ZPrftfbi7qAbG0Rewzc8jcsaMGpMmSWzjLvkH Otuk3O8te+vHGjGBpDuz7z7Jpyg/KRBGFYcJ+6M/0UQkSSh1QEqzl1cPx+4KgQoNn10J nI6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p4-20020a17090ab90400b002271ef403e6si4451757pjr.145.2023.01.20.19.39.19; Fri, 20 Jan 2023 19:39:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229609AbjAUDf2 (ORCPT + 50 others); Fri, 20 Jan 2023 22:35:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjAUDf1 (ORCPT ); Fri, 20 Jan 2023 22:35:27 -0500 Received: from lgeamrelo11.lge.com (lgeamrelo13.lge.com [156.147.23.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E331473EDC for ; Fri, 20 Jan 2023 19:35:25 -0800 (PST) Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.53 with ESMTP; 21 Jan 2023 12:35:24 +0900 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.121 with ESMTP; 21 Jan 2023 12:35:24 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park To: hdanton@sina.com Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, torvalds@linux-foundation.org, longman@redhat.com, penguin-kernel@I-love.SAKURA.ne.jp, max.byungchul.park@gmail.com Subject: Re: [PATCH RFC v7 08/23] dept: Apply sdt_might_sleep_strong() to PG_{locked,writeback} wait Date: Sat, 21 Jan 2023 12:35:09 +0900 Message-Id: <1674272109-21876-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1674092314-16409-1-git-send-email-byungchul.park@lge.com> References: <1674092314-16409-1-git-send-email-byungchul.park@lge.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Byungchul wrote: > Hillf wrote: > > On 9 Jan 2023 12:33:36 +0900 Byungchul Park > > > Makes Dept able to track dependencies by PG_{locked,writeback} waits. > > > > > > Signed-off-by: Byungchul Park > > > --- > > > > Hey Byungchul > > +cc max.byungchul.park@gmail.com > > Hi, > > This email never reached to me. > > > Is DEPT able to get deadlock reported for the syzbot report [1]? > > DEPT can detect the case 100% *IF* the folio_trylock() is released > within the same context since DEPT tracks folio_trylock(), folio_lock() > and folio_unlock(), and it's definitely a deadlock. > > But as we know, because folio_trylock() can be released by another > context like irq, it might be either just a severe slowdown of the > context triggering folio_unlock() or a literal deadlock where the > context is involved. I dunno which one is the case. > > In short, DEPT can detect this case too *IF* it's a literal deadlock, > but it doesn't if it's just a slowdown. I'm planning to warn it even if > there is a slowdown tho, not for now. > > Let me reproduce the following issue. I will share the result. Hi Hillf, Can we talk about the DEPT report for the hang issue in here? https://lore.kernel.org/lkml/1673235231-30302-1-git-send-email-byungchul.park@lge.com/T/#m458f4d5f3da06a28c7fbb39b392d05e4c016603b Thanks, Byungchul > > Hillf > > > > [1] https://lore.kernel.org/lkml/6383cde5-cf4b-facf-6e07-1378a485657d@I-love.SAKURA.ne.jp/ > > Byungchul >