Received: by 2002:a05:7412:8d11:b0:fa:4934:9f with SMTP id bj17csp456415rdb; Mon, 15 Jan 2024 02:57:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFERFNX0Nm/W16vTcFsqAgyI6of1H/wxUhFnoev3NZcQRd8Hu8M7D2/dN977jz69IPbfzFd X-Received: by 2002:aa7:da48:0:b0:554:4e4b:7b68 with SMTP id w8-20020aa7da48000000b005544e4b7b68mr2844272eds.2.1705316273631; Mon, 15 Jan 2024 02:57:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705316273; cv=none; d=google.com; s=arc-20160816; b=m3bNjnuSjaFNGq68SH8sFpYwSq/ItjKkQep+msRIYJORbEUw+AMAhUppKvNyVn0oY2 kRTqfE/p9Uy3gNn+oP1csppS/ac1yaURl607pVEe3uUAdo9wIwlTgSPPoKbFf2h5lnZC nOh+8qYstCy9wp+zgHoNrc1T9MsqMGUI62Is9kJmnGyran/FGggp0xdNsLTbai90yV/X j0/GJoHB6mYVSsZhXsUIGVbXaX8d6HJHiwHZHRLVl4Sqjkp3BM4/Ei8bg3GkEW7NsEOD UJkNau+qGaZP6oMZAwMzLJgoGxfpVIVGrWSfKJCT+TY7oOnhA6q4HQZJV6JFrENn2KPp FqVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:date:from:dkim-signature; bh=OrIEIVQ0TBrRPvuwtl5pM5zpIBQQMtqiH1n/HgWgNXE=; fh=wrqJ1xM5aUacyjQWJyWHI79uPgUJ9jqeA1s8O73YmMQ=; b=bPOQO09TTmx3G/MPgUdTsszyW+M5Lg86qFuDV4Q7hYvYZLXI2MPEUHV4bKmjDZ8fL+ fTRObtGJ73+wkR6qYY8ENYMFwDv5yCJ2tD6y2L2aRKEIbG7iH8vlbqxed/VJbko7KxVi H5bxqmXTHTyRX4g2s1YijUuSduAurirS4mNhJHhl+AHZ27AjAbc447dHzdl53dyv1F7p N16zFPclseb8KPxFDP0wrQE6WY/wqFTZ5oUDXalZyRRvexH8ArqoSuA795pg0cCNYa1y z6Mb0E/w89Rlr7yP/FCyF/OmHvLSxHRMwUD/eAYFz2TtDFEhjR6Te3DzjZGmPA4qOtDO dHYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AgQ8wfML; spf=pass (google.com: domain of linux-kernel+bounces-25907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id ew14-20020a056402538e00b0055964e1aa63si332028edb.209.2024.01.15.02.57.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:57:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-25907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=AgQ8wfML; spf=pass (google.com: domain of linux-kernel+bounces-25907-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-25907-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 5FE8A1F22250 for ; Mon, 15 Jan 2024 10:57:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C31C7219E1; Mon, 15 Jan 2024 10:57:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="AgQ8wfML" Received: from mail-lf1-f45.google.com (mail-lf1-f45.google.com [209.85.167.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8CBC01E865; Mon, 15 Jan 2024 10:57:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-f45.google.com with SMTP id 2adb3069b0e04-50eabd1c701so10387604e87.3; Mon, 15 Jan 2024 02:57:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705316261; x=1705921061; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:from:to:cc:subject:date:message-id:reply-to; bh=OrIEIVQ0TBrRPvuwtl5pM5zpIBQQMtqiH1n/HgWgNXE=; b=AgQ8wfMLvbxuGAZWuXvayMu/lOt4Mg5apEt2j6FreqLve93gdLRisRtOvmiYWy8SKX xmmrQ7qb4Ix1V4JfubGAm0arcsKh1/RQ0j0vzk7Ez67dTbMRvDnxORo30ehl2VBjTHop vUGj8wDC0lc+7vk3pkul8Stv9VHF1tVDzds+W3uIfBdTyhdWiaSc2DAek/CS2WuSPGRY ys19cy2ceruNm9GTKTN7KQkqAXf0BzuPrjWBSd3N/tdyqHM3KwAJHlvyW4VV/Okt+Xgv giPmVn2F6aHa60tPqU4msw6NXd2l43ICsLfwbfzhe+GWPxZI9pzfSbDQtUW4Pocl0ZBq kjNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705316261; x=1705921061; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:date:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=OrIEIVQ0TBrRPvuwtl5pM5zpIBQQMtqiH1n/HgWgNXE=; b=iL8h2yALHDyqJDfcY6MRL1AgGI9w6kPABLZiHMR1aQ+Fa1En0RM+FUBhsOGzlpA+DC cZyY8FQ68XK84sZwwyI5tvezDn2NxKONxer3Cvii6XMV8lp0Gg5FycsvLVJSp2Frl0u3 f7jdVWYAgOnvbuodxWAanMdkLUkh3Ijngc8jMG+bBZKXDXCPOLaPEseCds092tplOMPV tCuk52q+rvx5X6AZRDi/kUBClRZ7dJWTXLEjVwEDxKuyOuogU115CFhD+eTLCyagraY9 psHa/oh4Q/d9sJCmqicCJ9IBLrINlfUHcVvchtgmxEA1URoC/pvX6WuRBnzIglvpM7D4 2d0Q== X-Gm-Message-State: AOJu0Yzowt417OqNU8jhG3I+qAvoF37sOVsTMarKuDmR2IErjOd7dQOw XqapiMQ+ioipa3SBlxkuUto= X-Received: by 2002:a05:6512:2247:b0:50e:a15c:6b61 with SMTP id i7-20020a056512224700b0050ea15c6b61mr2696333lfu.116.1705316261487; Mon, 15 Jan 2024 02:57:41 -0800 (PST) Received: from pc636 (host-90-233-221-202.mobileonline.telia.com. [90.233.221.202]) by smtp.gmail.com with ESMTPSA id q12-20020ac24a6c000000b0050e7e304238sm1440881lfp.19.2024.01.15.02.57.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 02:57:41 -0800 (PST) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Mon, 15 Jan 2024 11:57:39 +0100 To: Z qiang Cc: Z qiang , "Paul E . McKenney" , RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker Subject: Re: [PATCH v4 4/4] rcu: Support direct wake-up of synchronize_rcu() users Message-ID: References: <20240104162510.72773-1-urezki@gmail.com> <20240104162510.72773-5-urezki@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: > Hello, Zqiang. > > > > > > > // concurrent sr_normal_gp_cleanup work might observe this update. > > > smp_store_release(&rcu_state.srs_done_tail, wait_tail); > > > ASSERT_EXCLUSIVE_WRITER(rcu_state.srs_done_tail); > > > > > > - if (wait_tail) > > > + if (wait_tail->next) > > > queue_work(system_highpri_wq, &sr_normal_gp_cleanup); > > > > > > > I'm testing these patches :) , one question is as follows: > > Can we use (WQ_MEM_RECLAIM | WQ_HIGHPR)type of workqueue to perform > > wake-up actions? avoid kworker creation failure under memory pressure, causing > > the wake-up action to be delayed. > > > I do not have any objections in not doing that, so we can add. > > Thank for testing this! > I forgot to ask, is your testing simulates a low memory condition so you see the failure you refer to? Or it is just a possible scenario? Thanks! -- Uladzislau Rezki