Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp295827rwb; Wed, 18 Jan 2023 17:56:17 -0800 (PST) X-Google-Smtp-Source: AMrXdXsp2+vf54va1lXHT2yS7+5KoLKrBkBaHQvcrJV01noM+vMDwePwGk8TSHi5B20I5t89wvmS X-Received: by 2002:a05:6a20:43a0:b0:b8:f026:754 with SMTP id i32-20020a056a2043a000b000b8f0260754mr5924648pzl.54.1674093377730; Wed, 18 Jan 2023 17:56:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674093377; cv=none; d=google.com; s=arc-20160816; b=iQhqONqGH7xpMS10dzr3p72YlihEmxxWM4hoXAb9NhdlRDhm+xRZMF5uljZXlq+u9Z GVPfNY35fU2+aTbN1jSqVIsaarF9nAk5W2Leley9O5q1GDMmhHnbnJQ5ummfT02H56eE L3Fc2sRjGDgkl+JsIsQfCLg9fL8KL3j/JXhVCbHn/fEmt6j7verNLIJZyz773t7+q0TS Ssop6+OU5sgzy3yy/bcCkLLCQzkpIE6vHfPZSBmOA1MBcqlpB14UtNVVMXD+ooENN50g OT5jA6uwPDonUFU2N1mdbDRbWxfMNeBCKo8muLY/xNHeaqlYaRIr7DvHtFlnv3pFnPI6 HTlw== 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=6fA9M7T5gSE1MMFUgaY6Fske1/+T/+x82T9t8UvSSas=; b=PIfnoheiD84pJvqcGxU9SA7I3gblC8zxDnbSyLh++n1TGltE24vqFd/C9imstrOP6x /yrjeLhvl9DB+corV1V1voXo+k0aP47EBYtxF3C4xmv1OOek2qomjvEwbOtUJNIaRyoR j+ZD4Gw8lL8Iv7Y3Llt+hyojD2b9iUiSWL2ZxmpvdLX5mRfcM8IzFSGblG3I6vhTJuXA cOselq9F4leQ0xApoMpEg+GKoyCT0DiWuVDS4c0nu7EFibYbjqf2hVOMoDj2juyNirH5 mn5rSNeZvFQtANi0yjou+FyUoWWegR5XJMAxkYs7FMVLeTQo1MOFwz/6NVKPqBZ1JYk3 CnJw== 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 g7-20020a056a0023c700b0058150179c5bsi10251784pfc.26.2023.01.18.17.56.06; Wed, 18 Jan 2023 17:56:17 -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 S229863AbjASBsI (ORCPT + 44 others); Wed, 18 Jan 2023 20:48:08 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229841AbjASBpl (ORCPT ); Wed, 18 Jan 2023 20:45:41 -0500 Received: from lgeamrelo11.lge.com (lgeamrelo11.lge.com [156.147.23.51]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 11FB86CCCA for ; Wed, 18 Jan 2023 17:38:47 -0800 (PST) Received: from unknown (HELO lgemrelse7q.lge.com) (156.147.1.151) by 156.147.23.51 with ESMTP; 19 Jan 2023 10:38:46 +0900 X-Original-SENDERIP: 156.147.1.151 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO localhost.localdomain) (10.177.244.38) by 156.147.1.151 with ESMTP; 19 Jan 2023 10:38:46 +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: Thu, 19 Jan 2023 10:38:34 +0900 Message-Id: <1674092314-16409-1-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <20230109113720.221-1-hdanton@sina.com> References: <20230109113720.221-1-hdanton@sina.com> X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 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. > Hillf > > [1] https://lore.kernel.org/lkml/6383cde5-cf4b-facf-6e07-1378a485657d@I-love.SAKURA.ne.jp/ Byungchul