Message ID | 1673235231-30302-10-git-send-email-byungchul.park@lge.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9AC35C61DB3 for <linux-mm@archiver.kernel.org>; Mon, 9 Jan 2023 03:33:58 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id A63D48E0001; Sun, 8 Jan 2023 22:33:57 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9BD49900007; Sun, 8 Jan 2023 22:33:57 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 48D228E0001; Sun, 8 Jan 2023 22:33:57 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 325C78E0003 for <linux-mm@kvack.org>; Sun, 8 Jan 2023 22:33:57 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay04.hostedemail.com (Postfix) with ESMTP id EE5421A0270 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:56 +0000 (UTC) X-FDA: 80333841672.09.CE1C990 Received: from lgeamrelo11.lge.com (lgeamrelo12.lge.com [156.147.23.52]) by imf18.hostedemail.com (Postfix) with ESMTP id 4798E1C0006 for <linux-mm@kvack.org>; Mon, 9 Jan 2023 03:33:53 +0000 (UTC) Authentication-Results: imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.52 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1673235235; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=jvOm07VZ/IX9CRz8Js+WUurIIA5hdm4YfSGZfUDzxz8=; b=h8r6SozniJZN5frZET12fZtGY5dNHDHcJrGn0Be3zHZ/qzd5y+MTnbwiPOJZrR/p06+EBA IvtwmfbjxSt7irrDLnzcWo9NkOw8Ycuu6QLKJXVTJEeeNuPKOBfYKIQITAKM+78h8bSc8R 7rqdWceTYpITG5lXL83IbFcZ9b+9nKs= ARC-Authentication-Results: i=1; imf18.hostedemail.com; dkim=none; dmarc=none; spf=pass (imf18.hostedemail.com: domain of byungchul.park@lge.com designates 156.147.23.52 as permitted sender) smtp.mailfrom=byungchul.park@lge.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1673235235; a=rsa-sha256; cv=none; b=NFQaR591iTXk6G1/P41aje3K0A2hVUiVaSPRIbfwwJTWVjlLP9TRUhcm7tlXF9Kzpn6GHM DUlFoF1kIAvdLD8I6dxR3J6m5o5gOwEUZgnWq5on9WyDgHRgBayI9prbbv+fvLyqDVZDtF QDB4rVFwUnvKR6Ls3HuRGo+/43RlVls= Received: from unknown (HELO lgemrelse6q.lge.com) (156.147.1.121) by 156.147.23.52 with ESMTP; 9 Jan 2023 12:33:52 +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; 9 Jan 2023 12:33:52 +0900 X-Original-SENDERIP: 10.177.244.38 X-Original-MAILFROM: byungchul.park@lge.com From: Byungchul Park <byungchul.park@lge.com> To: linux-kernel@vger.kernel.org Cc: 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, paolo.valente@linaro.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 Subject: [PATCH RFC v7 09/23] dept: Apply sdt_might_sleep_weak() to swait Date: Mon, 9 Jan 2023 12:33:37 +0900 Message-Id: <1673235231-30302-10-git-send-email-byungchul.park@lge.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> References: <1673235231-30302-1-git-send-email-byungchul.park@lge.com> X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: 4798E1C0006 X-Rspam-User: X-Stat-Signature: cas3hc1db1auumpwuszse6ts3et47tr3 X-HE-Tag: 1673235233-202427 X-HE-Meta: U2FsdGVkX18eg2U18bdwm6/zhOGVDwsEoVnbXAqhOY2x4i+ZL7TnLFwAxZDwB0zUq//yrmNZbqWruybqtEu782nL+FFmHFr5ojnst3ygMWy/NX6YsJ8fwU1wKnNPPkRFE3HuDIacmvyCxOWDVwYwQ14erSgYme1XrxNeYlsGVs889c8zvRol4mpvMriIRvtPmPMv3QLS8PgoBEmZV4KypOv7ZH/lIFjQKhd0jPY0/vN08Qvs4vC/u240wVrChjhMeb4bZsTbC3CMvSYobiquP62LavLFVVzHf39uzrweeQ2WLi7QAFcWaZ6mlEoYDWpzCcSvBMcukkseTkjQ/7xgfPU6T4E+W3RC6U+Bp7MW4nFb9J1ANW8l1FGrqFNqngk6G45bcexn1tWkh/hshOVkqyIbgJD1H3sLqXBbxnUcfJNvnpDsPZqwyMYUTJ1X1JOLG8vPcrrnNK2Jw1s6y6+fS1aZyzprfExfby+BFq2YzdTi/Re5yPMtIlLHZg6A/6LUF9Ap9JlVF/xQ+eo6vIN+WTCdtYIKVlwePW1XacsppGyimEQ1zpMMIpnWHyrAeaIkL9+MVnKN9Uefjzm7UNGZRip1bfcFCVOWw3NLUfqoHfWTBEC2KtXyCK7lY8H8esWl1Xy1YuBSW4zlIpRNMciURedxu7OMA8TOCzuyF0YuFks7ieBvrgDmQUpMlt/PfniFLxP6ntElgVWn3EgVShCyHau/kaxj/F+iUDoA5aLYRhGV0AWLeshQYo6q9BouoxQua1N6BQ6/Re4oxAQNSyFgka0AOPhgCZ9ht/LA3b+RqkUgqA4AsZtFtt15vbumIE3ycxWpePKJWAYCoiSn+ukAWm1aKaLoiXMjWarkudGJsD8N0TjMN5ibYaOTfAdCjHPq X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
DEPT(Dependency Tracker)
|
expand
|
diff --git a/include/linux/swait.h b/include/linux/swait.h index 6a8c22b..1304209 100644 --- a/include/linux/swait.h +++ b/include/linux/swait.h @@ -6,6 +6,7 @@ #include <linux/stddef.h> #include <linux/spinlock.h> #include <linux/wait.h> +#include <linux/dept_sdt.h> #include <asm/current.h> /* @@ -161,6 +162,7 @@ static inline bool swq_has_sleeper(struct swait_queue_head *wq) struct swait_queue __wait; \ long __ret = ret; \ \ + sdt_might_sleep_weak(NULL); \ INIT_LIST_HEAD(&__wait.task_list); \ for (;;) { \ long __int = prepare_to_swait_event(&wq, &__wait, state);\ @@ -176,6 +178,7 @@ static inline bool swq_has_sleeper(struct swait_queue_head *wq) cmd; \ } \ finish_swait(&wq, &__wait); \ + sdt_might_sleep_finish(); \ __out: __ret; \ })
Makes Dept able to track dependencies by swaits, but weakly. Signed-off-by: Byungchul Park <byungchul.park@lge.com> --- include/linux/swait.h | 3 +++ 1 file changed, 3 insertions(+)