Received: by 2002:a05:7412:8d09:b0:fa:4c10:6cad with SMTP id bj9csp268335rdb; Mon, 15 Jan 2024 22:19:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IHQ0Vgubzpf1+dYY9erPEKmWxH+hltC2NxGGaET635//Es4ji6h+4CTxxUNfY1PkSZGk4FQ X-Received: by 2002:a17:906:3e17:b0:a2d:b6cd:49be with SMTP id k23-20020a1709063e1700b00a2db6cd49bemr2695896eji.72.1705385993809; Mon, 15 Jan 2024 22:19:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705385993; cv=none; d=google.com; s=arc-20160816; b=es9ga9bhlFSH+pWpiZZMj9jnooAuedXjz/z3iuurq0n4FElg8bIH/kGPfRcw+v3JPW 4yTOozgI1uYZp3klBvRmswWn6CY3v84DFXdbSq0wyosIWePtrc5uzDQqPPuymMWjwetf cm5qMUV6ybvGZBvxCw8JUYyF1tyr6q8JutR8C9VCmW/nzkXlN67eeN7SoQsCVrEDEvCY jVUuWjwRvWMBY7i7UjnHLEDtDLMAcFF3GLmLv/i5Unf4HYumrXdhUiFlMQnO2/W3+Xbj dr95tBx3Fmfkd8tnD/rzEH+o4pxJwP3Vp3oZDi+2tj+BR9qZU1C5tgxr0onevkKDiIN7 syrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=BtPgpHD29V6EL14MEPmiAO57qgLbXU9vw9VJiILh/Cg=; fh=gE7HV+wyCnMgm+1kEnoCmQYOuo8lBgjAmYrQwYgcyMY=; b=t6+wikWGTR8ZMSrtMN7kYRH7rg/IJI5YalW6gl0NnfzBsLoQrY3G4aT0P0OO0eIlop /Opjhbxnk/wlifWAq3b50JzObOGcSTRiFX3tDC/vthRg0ZeCX6dCfSEcRG7gRDAZ/KPS 1zQCWgxlm8Ivuwk87JuqOrkTLb7NOvOjdQIXsd7qPw0npbk0gKozTOSTEOsLfTKclw1w vtP+rFPRUBsgqoxe5BV4sfEY8J/db5hI/3JWM326TlekMTmQzw4/Arui+x+8D5xZWGso 9544TzerPJWGMpsDNn93sGtgqw5mILPX6oJics0cQ9Qxcb3HN+sRvb5Q2TYcEi/rWRBD nsMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=amf2rWhL; spf=pass (google.com: domain of linux-kernel+bounces-27035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27035-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 k14-20020a170906a38e00b00a26ae0332f8si4530502ejz.110.2024.01.15.22.19.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Jan 2024 22:19:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-27035-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=amf2rWhL; spf=pass (google.com: domain of linux-kernel+bounces-27035-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-27035-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 8E2011F23933 for ; Tue, 16 Jan 2024 06:19:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DD7F110A18; Tue, 16 Jan 2024 06:19:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="amf2rWhL" Received: from mail-pj1-f52.google.com (mail-pj1-f52.google.com [209.85.216.52]) (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 CDD7910A01; Tue, 16 Jan 2024 06:19:46 +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-pj1-f52.google.com with SMTP id 98e67ed59e1d1-28e718874e1so228763a91.0; Mon, 15 Jan 2024 22:19:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705385986; x=1705990786; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=BtPgpHD29V6EL14MEPmiAO57qgLbXU9vw9VJiILh/Cg=; b=amf2rWhLTgL/XKyDzii4NU4e4sKIrejPY61gWsw9PMf+GbKCf8gJSSomUQq9wLAEiQ R9+L7v/0E2uaHTZJICAgW4vJp/CY0tJBolpeqdS6fipCs4s8pVzhGo3bAOZsELL+7SBh T4LsBT9lgvy2eDmvht6H9qOte3btkrpWWw/yv2R/bcRtIXJbZZTpeHYBZDXnQS9RdVsQ 3IL7/zSNlapsITxUmi2MZab+Y11wSOVBGNA8tuRSbmdYF1TlJeOUtFEYPr4L5pp2vl4X qO0i6zMLn9miw21BCOEQya11FB3LB4cfQfZL62FZUCvehMSoMcq4+2EKeYyyRISOEBjK TVfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705385986; x=1705990786; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=BtPgpHD29V6EL14MEPmiAO57qgLbXU9vw9VJiILh/Cg=; b=eTX8SUFaixQb9SbL0zk6fe23/eqxHXkw1zwdlJjGvQ1QnC5DiLF1EIaz/v4dyAI2AC gevFqTgwIGWyrsFk+0AJwbECoGXSoZ/q0u5/XSHquaw+XilDFFBEOmZxpnWkjoFwUEhr 6MpYd1NdAgDtH3ZmBUAGz9nSzVgMj63AaGtX0WBex/5YiEbrRp9IS84TMr0xGCL6EQgN HqOOJ87/vQhJkdo8DYhUi9SAcnZGVTpw/bYQjWj1rjwvgyt6s1DOixqxvnDCzTjv1NEX 4mELJTglA552/cHGSfyhD4QbusDQIdX3GGzCtCTmiFIXsywdCHarAiQ7NukXkvIVT9C7 uSeA== X-Gm-Message-State: AOJu0YwyN0iAiYpCoGq3n++RnPYTiPUPN5Amo//RVaGBeMfNlq3jmLPD 9HeJL7vUW0A4iCGKYGs9mI7WlFlWYO+AUl+SiIM= X-Received: by 2002:a17:90a:c797:b0:28b:e57d:9710 with SMTP id gn23-20020a17090ac79700b0028be57d9710mr3306050pjb.6.1705385986020; Mon, 15 Jan 2024 22:19:46 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240104162510.72773-1-urezki@gmail.com> <20240104162510.72773-5-urezki@gmail.com> In-Reply-To: From: Z qiang Date: Tue, 16 Jan 2024 14:19:34 +0800 Message-ID: Subject: Re: [PATCH v4 4/4] rcu: Support direct wake-up of synchronize_rcu() users To: Uladzislau Rezki Cc: "Paul E . McKenney" , RCU , Neeraj upadhyay , Boqun Feng , Hillf Danton , Joel Fernandes , LKML , Oleksiy Avramchenko , Frederic Weisbecker Content-Type: text/plain; charset="UTF-8" > > > 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? > I'm not currently testing this feature in low memory scenarios, I thought of this possible scenario. I will test it in a low memory scenario later and let you know if it happens :) . Thanks Zqiang > > Thanks! > > -- > Uladzislau Rezki >