From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) (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 D119752ED42 for ; Tue, 8 Sep 2026 14:23:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788877427; cv=none; b=doiON/437wHnfll1G/DMZEt6h68/0p8/dnh9dtOHoKQmIQn2VFliZXKvBanDit5RGG4rMqH2/AgaIQ3Rb2QOyUSqjoZsrVV+fZhqCdIgqYQVik6su+UrRyTNHbDkYyxiCYrj55B9iVlhq356Gt998er06Kk8DPP2ctXH9VVKqMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1788877427; c=relaxed/simple; bh=NKSLcc0XWVLl32spztk7XP02BhHOIHp87F6EtVuddIc=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=j8085YpkWxFmB7Nz1MDL+tRxTuJZ9AaH7OMchWKcPqNYVe4JZ24RVGhDNsE8GamiAROQtYTrix90EAF8IQO69UYZ+i2VZrPPxyq7zzY0bOpeHQAwEvrskq5sifd4vmywOsTAl7FSVVxNvuVkyLUHUh++bTjHqbHH3MmcKPZorG0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=k9CpbJC5; arc=none smtp.client-ip=209.85.210.172 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="k9CpbJC5" Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-853f8c34ba4so5534530b3a.0 for ; Tue, 08 Sep 2026 07:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1788877417; x=1789482217; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:date:from:from:to:cc:subject :date:message-id:reply-to:content-type; bh=SnF7FxdLIEQlswE9xvoQ5sUHHcQzYgPIRrMFvodMtWw=; b=k9CpbJC59T/ItxFXqXOfQlo8l+W0og/JCj0dh1uf7UVGMP9xBqViRBa3uTRcY0jywx 6yJqa/qXixbI/0BpZEBmO/czC5Y5elR+8fErfRubGiGmWKpdZh8E8GZ33nexZE3oWJbl utdlEo8c3CreWGs8kOMTOXV9Bo/l7eD6CJaDzqKfZSjX5mUzCx7JrOCgT3XylIRPxbpH XGh8onrhNVC0eyTOXRlYqGgZ3vuiC9Go5hJ1MOJNoiqW2Z3G28p+F7b8T6lOR7QqG8UO 43NP1rsBiQJuEfgMsZsg8MG1OQ6y4NKvYSg9cNrE7YZv7uYY3KotNJlCmbBgSp+fPOMw jbpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1788877417; x=1789482217; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:date:from:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=SnF7FxdLIEQlswE9xvoQ5sUHHcQzYgPIRrMFvodMtWw=; b=fuKqFMCtnsWlZncjSGBYWEJevUbJe0B2nGRhLmUPFO4IzUXZFMqfVxGZ+l1I6yfcj4 1dFuAwavSToqhOlSsdYZRspVDi6GI29ABp/tA902ND49BxLrlYrThxHvVj1Nrn5A599C NJtzUkYM4stnomVlOgraoaUyqQ66lSs8fPt0Uhm0rSlXew1dwEYdBBGdFPRgpYMTHjww 9NHmJFwj+3lK6RkaQCfYufQ8JeaJubLfHK5/1eWP33pHHEhWDZj73h7FvflBWVfeoyho zTXmEg52wQFiVsU6vEkqLFjbexD68xxCpBn7mnuPYVq8wGARoUuDbScw3qIDxQ4s86zq hsVg== X-Forwarded-Encrypted: i=1; AKwUvBwAaqPSfGj65wmGDgDW7Vl1Nt70trM1C5dVQbijXEwqNvl6moVwPCBSvXByq+koobMlMt0DrY8=@vger.kernel.org X-Gm-Message-State: AFuF++kWeXLFlFZPVMv3lfd9p30E6Lmc2g0xLOQSyr1uign5uwGnQHPs mxKwTA2cCxINGhQG6CDi5PEH+FpQKjxmwICMY7kRXSsGdWBL5P5d7RR3 X-Gm-Gg: AYBFou1BQWWBRXY8csIk86MGJ31DOBhhqEYdBY/FJXj5gZkIt7n6RaT/dIDygJikLLD 37PjTNrp1E297p984NFVHYetoRf/LbCN9G6pIoZix4BJiC+/yYN2UY2j6mSJNT159rJ63btKIsq I+0rZX7uYe3PP7CeITJKtaEc8kwWTALRHyJRL6aC3wtagWoIdCMca2XitNfoe4JhzpA1RI7HbbH YWTpB9V/cf4L6p1Vyxoo5pKitexNQI0hialwV6GX055bOLtGK/H8TrKn5Ghqk2MGFwHMQ6Mo8NE isfChav4xRYpTZA8C3EueMgElt9Ubk4ch4KI1rnbuoxar4cZhFpGfF73PR1c58jCWn/OA2nMK56 PHQTKgkeMqnXWbYwuunH/KqYILvYODbz4YCPvnA/dPUelI/mD7/8EfQhJBYBSlBH8EbGZHKFlVi oaNH45FvyUc1AHyp5JhEfeZy706M6dYBJdi7zKIFS8BA== X-Received: by 2002:a05:6a00:1702:b0:857:726d:270c with SMTP id d2e1a72fcca58-8616dd51063mr41868561b3a.24.1788877416550; Tue, 08 Sep 2026 07:23:36 -0700 (PDT) Received: from pc636 ([125.29.25.186]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-8615404876fsm5590951b3a.59.2026.09.08.07.23.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 08 Sep 2026 07:23:36 -0700 (PDT) From: Uladzislau Rezki X-Google-Original-From: Uladzislau Rezki Date: Tue, 8 Sep 2026 16:23:30 +0200 To: Andrew Morton Cc: "Uladzislau Rezki (Sony)" , linux-mm@kvack.org, Baoquan He , LKML , stable@vger.kernel.org, Dev Jain , Ye Liu , lirongqing Subject: Re: [PATCH RESEND] mm/vmalloc: Use dedicated unbound workqueues for vmap drain Message-ID: References: <20260905152717.11711-1-urezki@gmail.com> <20260905153704.e7fe650d0226c3e20c1c8449@linux-foundation.org> Precedence: bulk X-Mailing-List: stable@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: <20260905153704.e7fe650d0226c3e20c1c8449@linux-foundation.org> On Sat, Sep 05, 2026 at 03:37:04PM -0700, Andrew Morton wrote: > On Sat, 5 Sep 2026 17:27:17 +0200 "Uladzislau Rezki (Sony)" wrote: > > > drain_vmap_area_work() function can take >10ms to complete > > when there are many accumulated vmap areas in a system with > > high CPU count, causing workqueue watchdog warnings when run > > via schedule_work(): > > > > workqueue: drain_vmap_area_work hogged CPU for >10000us > > > > Move the top-level drain work to a dedicated WQ_UNBOUND > > workqueue so the scheduler can run this background work > > on any available CPU, improving responsiveness. Use the > > WQ_MEM_RECLAIM to ensure forward progress under memory > > pressure. > > > > Move purge helpers to separate WQ_UNBOUND | WQ_MEM_RECLAIM > > workqueue. This allows drain_vmap_work to wait for helpers > > completion without creating dependency on the same rescuer > > thread and avoid a potential parent/child deadlock. > > > > Simplify purge helper scheduling by removing cpumask-based > > iteration to iterating directly over vmap nodes checking > > work_queued state. > > Thanks. > > > Cc: stable@vger.kernel.org > > Cc: Dev Jain > > Cc: Ye Liu > > Cc: lirongqing > > Fixes: 72210662c5a2 ("mm: vmalloc: offload free_vmap_area_lock lock") > > Link: https://lore.kernel.org/all/20260319074307.2325-1-lirongqing@baidu.com/ > > Reviewed-by: Baoquan He > > Signed-off-by: Uladzislau Rezki (Sony) > > I think what we wanted here was > > Reported-by: Li RongQing > Closes: https://lore.kernel.org/all/20260319074307.2325-1-lirongqing@baidu.com/ > > so I made that change. > Yep :) Thank you! -- Uladzislau Rezki