Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp1673890ioo; Sun, 22 May 2022 23:56:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzK9DsQo4uDHN0cgVUBrNoi8ritHCoQw+9aXHSM5LGE5VanQ1UNFYPtD5BLyy4FDu+zEX/E X-Received: by 2002:a17:902:ea57:b0:15a:6173:87d6 with SMTP id r23-20020a170902ea5700b0015a617387d6mr21310375plg.104.1653288963093; Sun, 22 May 2022 23:56:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653288963; cv=none; d=google.com; s=arc-20160816; b=eSu5I8+AuXGz7Ln+SRy5r0KpM79T1ueBZfusGw+sRNEOfZ1MPT/0DlvF5ZKxwFZO2y BcyBql4Pz9ugMCWQ0FQQuwMYgF0A9nlpG6mi8qyBbKkZbHt1vDZIS3xHjsS9HKrpl3pU Ow53KVAv6WYnx583VbS3v4vqkmhf59tj/TCFDFeoBEJZCdOzkFyUL8hCyqsax4yNG+FQ Fw3m+vnaO4jMTdejmv9Mjws6uzvIVXuaHsDW8o95gc6eGUE+P8NCJcK9VGwGnEljCKYR fPTdlXNtox7L6s5sAPCtSjV6vbW1C5hc1VkNs5x+JvcYJG4rCW0Wj6hpejQDeKr2dV8Z FA4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=p0fZ/gBmRNACJWVRb0xGnoiv0ErLrrq656zCxP0zo1w=; b=oDhTRMJ2ZUL22HRYS3tHQYWGn8hyqO4xwrK9usoMhdJiN8m0rmvJYRbYQOaPMiqw0H cCPw4XCFJGEeEMeaZV/fJdkoShxgtBI71FRegsSrRxRhr+zp6gxVEUL50b1P59erD7NQ CNOaIYgwmIrEzHdmghllvvYKY6OpQTKOiK+xabnxryiaACCQ+fSYBBDH+W3mfxObp56h Zqyo/dkC0Vr48tKQow4IWCtiqo6bQ4C0LApxXgs8KW9DyQw4xILn6SAYiWwoJlZTIJrk JiZESCYd38JneiSyJUS0977qNLkLNnlXWZUQaDxIKt+gotJ0h/0EVLMML2DeY5uFKu+h gy3Q== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id pc16-20020a17090b3b9000b001cb4d9e17c6si14394649pjb.84.2022.05.22.23.56.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 22 May 2022 23:56:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AF0CB13FBA; Sun, 22 May 2022 23:21:58 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233116AbiEWBMp (ORCPT + 99 others); Sun, 22 May 2022 21:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233042AbiEWBMm (ORCPT ); Sun, 22 May 2022 21:12:42 -0400 Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C0CED377FA for ; Sun, 22 May 2022 18:12:37 -0700 (PDT) Received: from unknown (HELO lgeamrelo01.lge.com) (156.147.1.125) by 156.147.23.52 with ESMTP; 23 May 2022 10:12:36 +0900 X-Original-SENDERIP: 156.147.1.125 X-Original-MAILFROM: byungchul.park@lge.com Received: from unknown (HELO X58A-UD3R) (10.177.244.38) by 156.147.1.125 with ESMTP; 23 May 2022 10:12:36 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com Date: Mon, 23 May 2022 10:10:45 +0900 From: Byungchul Park To: Theodore Ts'o Cc: tj@kernel.org, torvalds@linux-foundation.org, damien.lemoal@opensource.wdc.com, linux-ide@vger.kernel.org, adilger.kernel@dilger.ca, linux-ext4@vger.kernel.org, mingo@redhat.com, linux-kernel@vger.kernel.org, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, chris@chris-wilson.co.uk, duyuyang@gmail.com, johannes.berg@intel.com, willy@infradead.org, david@fromorbit.com, amir73il@gmail.com, gregkh@linuxfoundation.org, kernel-team@lge.com, linux-mm@kvack.org, akpm@linux-foundation.org, mhocko@kernel.org, minchan@kernel.org, hannes@cmpxchg.org, vdavydov.dev@gmail.com, sj@kernel.org, jglisse@redhat.com, dennis@kernel.org, cl@linux.com, penberg@kernel.org, rientjes@google.com, vbabka@suse.cz, ngupta@vflare.org, linux-block@vger.kernel.org, paolo.valente@linaro.org, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, jack@suse.com, jlayton@kernel.org, dan.j.williams@intel.com, hch@infradead.org, djwong@kernel.org, dri-devel@lists.freedesktop.org, rodrigosiqueiramelo@gmail.com, melissa.srw@gmail.com, hamohammed.sa@gmail.com, 42.hyeyoo@gmail.com, mcgrof@kernel.org, holt@sgi.com Subject: Re: [REPORT] syscall reboot + umh + firmware fallback Message-ID: <20220523011045.GA16721@X58A-UD3R> References: <1652354304-17492-1-git-send-email-byungchul.park@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Thu, May 12, 2022 at 09:56:46AM -0400, Theodore Ts'o wrote: > On Thu, May 12, 2022 at 08:18:24PM +0900, Byungchul Park wrote: > > I have a question about this one. Yes, it would never been stuck thanks > > to timeout. However, IIUC, timeouts are not supposed to expire in normal > > cases. So I thought a timeout expiration means not a normal case so need > > to inform it in terms of dependency so as to prevent further expiraton. > > That's why I have been trying to track even timeout'ed APIs. > > As I beleive I've already pointed out to you previously in ext4 and > ocfs2, the jbd2 timeout every five seconds happens **all** the time > while the file system is mounted. Commits more frequently than five > seconds is the exception case, at least for desktops/laptop workloads. Thanks, Ted. It's easy to stop tracking APIs with timeout. I've been just afraid that the cases that we want to suppress anyway will be skipped. However, I should stop it if it produces too many false alarms. > We *don't* get to the timeout only when a userspace process calls > fsync(2), or if the journal was incorrectly sized by the system > administrator so that it's too small, and the workload has so many > file system mutations that we have to prematurely close the > transaction ahead of the 5 second timeout. Yeah... It's how journaling works. Thanks. > > Do you think DEPT shouldn't track timeout APIs? If I was wrong, I > > shouldn't track the timeout APIs any more. > > DEPT tracking timeouts will cause false positives in at least some > cases. At the very least, there needs to be an easy way to suppress > these false positives on a per wait/mutex/spinlock basis. The easy way is to stop tracking those that are along with timeout until DEPT starts to consider waits/events by timeout functionality itself. Thanks. Byungchul > > - Ted