Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp5907889rwl; Mon, 9 Jan 2023 01:15:01 -0800 (PST) X-Google-Smtp-Source: AMrXdXs6URmwE7vmSfNOWvoRDK+RLAFc7sDyztuc2JGWZMhcC2POCfejXX8LFdh8tKx8Z75kDXMI X-Received: by 2002:a05:6a21:3583:b0:9d:efc0:62 with SMTP id az3-20020a056a21358300b0009defc00062mr77142260pzc.10.1673255701110; Mon, 09 Jan 2023 01:15:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673255701; cv=none; d=google.com; s=arc-20160816; b=Bs4xXgIc7jPDMFzruFm1J2mlBoemAnSLKvRabzYK7De7f7o6XpWuEiD94NayqDuD7v tNwG5BG3I5m8i530u6eiRsjKh+HTFRok286DshFr3RWLCiaFMp+Jf5yGXfLQkIngxoOl K1cYMMyawcEQiO4kOJExFg5vBCjsz+vId9v9eJYOxvokwP8rMB/1oHZIzt2zzRS2CtqJ XoMIYFhenwPtAGKO3OgXQ0xsYT79pFNu6EV3XWzqjl3FG4EkWag9nKMs5g9Bw0A95gAo Glcem+DvUdUspLp+Rfur/NfG73TCT4PcuXevxmIemBhYLDDuTcmhfk1nHdOYJxdo5qA8 DfRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:organization :from:references:cc:to:subject; bh=tPLxJlww6Qj5xjnFHyq8Q5snrNUYC5kNUh8rf1olKP8=; b=kLCzv0ctxV36/XkuWwlc6TqyA0t9afLvdg67yMt46GjPBTseqm9aXoI0023Ndq7MJJ a9XcGAVubwuKS/IwHu/0zpOvqXJ7VjpNcpsZNCeg4Ef61ZXfkv+UzK3JhnU72jWoLfvg N8SyatCmfKzUo+1QouTfG4k3Bne6igOgxaQ14qhUVJqqpjPatNgwSMg9weBuA1IC2p31 OgbX7oayXVCprLrLf6C+UUWlTXjJjdEDmDZLzLNr7IGJ+sIk7JcH2lxWR0K/KX5KqR7U LTKITUiRNz55CeBjtm1wLYzIdZAcvFCmliLzLuxU0aTgeXg/YWjG0OOeOMdIsB5ggoAr 77JQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-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 j4-20020a170903028400b001926d680150si8307174plr.329.2023.01.09.01.14.43; Mon, 09 Jan 2023 01:15:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4-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-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236980AbjAIJOl (ORCPT + 99 others); Mon, 9 Jan 2023 04:14:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237124AbjAIJN2 (ORCPT ); Mon, 9 Jan 2023 04:13:28 -0500 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5DE0313FB9; Mon, 9 Jan 2023 01:10:25 -0800 (PST) Received: from [192.168.1.103] (31.173.86.218) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Mon, 9 Jan 2023 12:10:15 +0300 Subject: Re: [PATCH RFC v7 08/23] dept: Apply sdt_might_sleep_strong() to PG_{locked,writeback} wait To: Byungchul Park , CC: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , <42.hyeyoo@gmail.com>, , References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> <1673235231-30302-9-git-send-email-byungchul.park@lge.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: Date: Mon, 9 Jan 2023 12:10:15 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <1673235231-30302-9-git-send-email-byungchul.park@lge.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [31.173.86.218] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.59, Database issued on: 01/09/2023 08:47:21 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 19 X-KSE-AntiSpam-Info: Lua profiles 174559 [Jan 09 2023] X-KSE-AntiSpam-Info: Version: 5.9.59.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 502 502 69dee8ef46717dd3cb3eeb129cb7cc8dab9e30f6 X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.218 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;127.0.0.199:7.1.2;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.86.218 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 19 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 01/09/2023 08:50:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 1/9/2023 6:18:00 AM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS 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-ext4@vger.kernel.org On 1/9/23 6:33 AM, Byungchul Park wrote: > Makes Dept able to track dependencies by PG_{locked,writeback} waits. > > Signed-off-by: Byungchul Park > --- > mm/filemap.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/mm/filemap.c b/mm/filemap.c > index c4d4ace..b013a5b 100644 > --- a/mm/filemap.c > +++ b/mm/filemap.c [...] > @@ -1226,6 +1230,11 @@ static inline int folio_wait_bit_common(struct folio *folio, int bit_nr, > unsigned long pflags; > bool in_thrashing; > > + if (bit_nr == PG_locked) > + sdt_might_sleep_strong(&PG_locked_map); > + else if (bit_nr == PG_writeback) > + sdt_might_sleep_strong(&PG_writeback_map); Hm, this is asking to be a *switch* statement instead... [...] MBR, Sergey