Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2259472rdb; Wed, 21 Feb 2024 01:56:19 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXzif9jFdcFHpimQnPCQ5rCO6/atAZzDDybBvAHiY6Tslge0x8dCp7y2ZqWmp4ubAE1Uj5S1XaqvlSKE8VwvKg/PBwam38O7qBond2ydw== X-Google-Smtp-Source: AGHT+IF8xDYKTqvOEyNzpa3+0GY8poNsr7RMVBpLaQ+1y8hovWb7g1IqDoZ9Hhee4cnZemTDQv8e X-Received: by 2002:a05:6214:3005:b0:68f:7557:588f with SMTP id ke5-20020a056214300500b0068f7557588fmr11970016qvb.17.1708509379195; Wed, 21 Feb 2024 01:56:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708509379; cv=pass; d=google.com; s=arc-20160816; b=sImN7Ss0V6an35GgGCAryvClNAc/096sRdWHMU5KIz8cqzBpWHnptU+wFu/nuIVp9c ZWPcEQwUp/nHFAthT4fjJ3nFfS8V6zciOHA0hx1ZRLTNq5IK+ot2c46FhbmxKfDfes5R 0gipM+zuj59Ujv7w/GJyuwjSAZnR4U/0r3LTCqXxcxDZMo25SKOVGrMhq/5TSCqp4whj exuKdLkelhgZ5MBjQC/zxAB7FhiuPJBCNT6zlWvn/o71tfb7jBIM4VrcQLsuPFHeFHkN bqXzZ0n1UO41C9M+u2rxCqKQm0C6PtTlPGI7vgEgY6owSl/6dU2b82S9by3o1Hsp6zYt yBwQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from; bh=09EUZJPmXW7lOZvbeu5TNUPkzhdC2Dat/aeOn/0RYwc=; fh=QMm8m/ZWm+A1EqjKAllYKUqNg+o2tkLujHELlI5tZV0=; b=sNGEtRRvTcqg3TUoU55BLRVdu8ltOv0LGqA6B+E8K/51H1lYMkdLwt5n21lgQx6dm4 RDmMSW2xJg+B1hsNLOBvWa880gRjd3MdtNn2NpfKlLZ28KC0rqaiYXLIFJfiGHAytOss MUBpQVGGsGa/1ZpuRxW2Lb719UaDhg1grzYPOkILckIut30eI392xTnd1ojt90/6Cboi 2iD6WXYw7NWy7/UgOzq2rG+GYetJTw+WFsSqoKLVT607f4k24s2WmzvKIbMPCvvN01uN HJ4//Y5johEFybyZwqTnypKeIrhyB8h+zJtoCzTD8O8Pq6DKV9+AUKQWOuMyUITV2G/a KWyg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1325-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1325-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id gs12-20020a056214226c00b0068fa2e70f54si985444qvb.11.2024.02.21.01.56.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 01:56:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-ext4+bounces-1325-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=sk.com); spf=pass (google.com: domain of linux-ext4+bounces-1325-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-ext4+bounces-1325-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id E63E21C231B8 for ; Wed, 21 Feb 2024 09:56:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1248D5915D; Wed, 21 Feb 2024 09:50:09 +0000 (UTC) X-Original-To: linux-ext4@vger.kernel.org Received: from invmail4.hynix.com (exvmail4.skhynix.com [166.125.252.92]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4C4AF4CE09; Wed, 21 Feb 2024 09:50:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=166.125.252.92 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509008; cv=none; b=P9hvdRxKaDXOb6jqxE8QYNuQqDb6OooL0heXoJ+eCdfnk8jospJMatp0cFTE/UqD3J83+9W+sJ9s7efU4hzVi0gu2LcxOAeYe07vM9GVMDmTVBJJcsGLby+3v3i4HHItpAS2/vQycI8c5D8inhBHhbkpOggESCEGkcleyfHzApU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708509008; c=relaxed/simple; bh=oVu1M/z+Be6zJoonqEicwRg8jn1j0IbzUk3u5AE/er0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=NqDX74gbpAmTGBHmBfU3tKrYJ9h8DmGNjzsvyw1F/gEM1MKUsAk07YlOgazSiGnrzVY2QbNBwA7oyo14eKdO5gRJrbVAMpIkqAMyS0edYML1uDKxjkvJC7FLNjtOUKhI5slk2qgZ47P/IR2SEwpPcJovo22eQkj78zasNHJq02A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com; spf=pass smtp.mailfrom=sk.com; arc=none smtp.client-ip=166.125.252.92 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=sk.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sk.com X-AuditID: a67dfc5b-d85ff70000001748-c8-65d5c73a9c46 From: Byungchul Park To: linux-kernel@vger.kernel.org Cc: kernel_team@skhynix.com, 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, peterz@infradead.org, will@kernel.org, tglx@linutronix.de, rostedt@goodmis.org, joel@joelfernandes.org, sashal@kernel.org, daniel.vetter@ffwll.ch, duyuyang@gmail.com, johannes.berg@intel.com, tj@kernel.org, tytso@mit.edu, 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, josef@toxicpanda.com, linux-fsdevel@vger.kernel.org, viro@zeniv.linux.org.uk, jack@suse.cz, 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, chris.p.wilson@intel.com, gwan-gyeong.mun@intel.com, max.byungchul.park@gmail.com, boqun.feng@gmail.com, longman@redhat.com, hdanton@sina.com, her0gyugyu@gmail.com Subject: [PATCH v12 20/27] dept: Apply timeout consideration to hashed-waitqueue wait Date: Wed, 21 Feb 2024 18:49:26 +0900 Message-Id: <20240221094933.36348-21-byungchul@sk.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240221094933.36348-1-byungchul@sk.com> References: <20240221094933.36348-1-byungchul@sk.com> X-Brightmail-Tracker: H4sIAAAAAAAAAzWSbUxTZxTHfZ5773NvqzV3ncue4cxMg4644WRRd6JuMS7Lni9GEqMfxpLZ wVXqSjFFQFymKFUYClEUitKQFl3t2k6wSNANkJfx6kTEKmiQCDNsjUUULV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: bulk X-Mailing-List: linux-ext4@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Now that CONFIG_DEPT_AGGRESSIVE_TIMEOUT_WAIT was introduced, apply the consideration to hashed-waitqueue wait, assuming an input 'ret' in ___wait_var_event() macro is used as a timeout value. Signed-off-by: Byungchul Park --- include/linux/wait_bit.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/wait_bit.h b/include/linux/wait_bit.h index fe89282c3e96..3ef450d9a7c5 100644 --- a/include/linux/wait_bit.h +++ b/include/linux/wait_bit.h @@ -247,7 +247,7 @@ extern wait_queue_head_t *__var_waitqueue(void *p); struct wait_bit_queue_entry __wbq_entry; \ long __ret = ret; /* explicit shadow */ \ \ - sdt_might_sleep_start(NULL); \ + sdt_might_sleep_start_timeout(NULL, __ret); \ init_wait_var_entry(&__wbq_entry, var, \ exclusive ? WQ_FLAG_EXCLUSIVE : 0); \ for (;;) { \ -- 2.17.1