Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B64D41FDF9E for ; Fri, 15 Nov 2024 21:37:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731706629; cv=none; b=Z74HSkwHtGR8qhEiyU+XuZUvkNOA7zYP0XDEgk9qFbspnWdLoGrqwNhRycBBNcgELHrobY8VzJBA1aetqKR1v09mpoePPkCPTefxY5oNMOhXjTinybNdrjcNxWSPenM/LNQoqG0Wwp7m0nPHa0BUNGXNwYNQcW0531N6C2Pf8RA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731706629; c=relaxed/simple; bh=Oeuk4NT8mGLS78CfxbKlyUY850mOCryg7B/6qGI60DI=; h=From:Message-ID:Date:MIME-Version:Subject:To:Cc:References: In-Reply-To:Content-Type; b=RPwIFLQ3gbZ1xnDEUgPpQmfhCQXy5IhECCdOjI+p9omJXCY3fq2Xt6XKy8mE5wxFQ0JvkigshVEFg+mRLvfJ3mM3k5Mn18gEqe5i1/aQeJ47kW+Dq/SCFL6O23ce7pI0Qx13yRYyfkdyqdWvWxf7rZUvX88CTIed2+ph3e/hRtg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hSnbt4cp; arc=none smtp.client-ip=170.10.129.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hSnbt4cp" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731706626; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Ivw2cPuuJQRwyJNSHiIw+Pyk/jnELW2tJEH2/eI89rI=; b=hSnbt4cpX3C+EdGGcITARG0JvCDCvcfJIdr9Kp4WyWEjuKWdRWNlO6/ixJr1A1leOzKpf0 KLOEvut1SYXVb0+7ZOmQtOb0F6slYyMv7jbHUP3dRNYCxKQhL8Afb3ys8mp98o7D2ITA39 tiq29wmOw2ghXU4XAkVFHb67PBIJK9c= Received: from mail-qv1-f71.google.com (mail-qv1-f71.google.com [209.85.219.71]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-479-1_8op8JzP0Wh9dJ6_roPFw-1; Fri, 15 Nov 2024 16:37:05 -0500 X-MC-Unique: 1_8op8JzP0Wh9dJ6_roPFw-1 X-Mimecast-MFC-AGG-ID: 1_8op8JzP0Wh9dJ6_roPFw Received: by mail-qv1-f71.google.com with SMTP id 6a1803df08f44-6d407522108so9186786d6.0 for ; Fri, 15 Nov 2024 13:37:05 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731706625; x=1732311425; h=content-transfer-encoding:in-reply-to:content-language:references :cc:to:subject:user-agent:mime-version:date:message-id:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Ivw2cPuuJQRwyJNSHiIw+Pyk/jnELW2tJEH2/eI89rI=; b=Lh8NkVviDt28O8FpfoCEyTk+uUhWS4/6BmOgX3te8d+vMrZ4CjTR0DMKpITYD+krJ4 HRpvX4uR1D7fFACR5W+vs34NT2M4yoyOw+/6M116gz3WOvfeerhPE+3dMK8/wFSV4BT2 1XZQHMJOnkFzIBpciqXbizdeYAm13yYL5fglJqUZgTIfp93mG425Z92IHtm0hl0ddDSK 71R2J2QiM/pYLDiQJcYPm118pONEftxJg56D9HDdWzhWEA95ARPCNl5NAK9p6WGAp4+F 42K3kTF6a9JxgzGC4K2KO9LuV33WRCGXpePIQTd4/dF8AukVlw5cQJIcDek2scEdIPO6 J0ig== X-Forwarded-Encrypted: i=1; AJvYcCXpbWc0cnOBuVDQenou20jG9WwiU5mJte8RvrAC+SiAu8o8VjK9jdtiskV0UvMYOguTVX9Pxpfj@vger.kernel.org X-Gm-Message-State: AOJu0YxM7BTDmgToyCUITT/u/xVpO2VFrZXl8h3n0W5Kj73q6QDAvczd lfVYfehbfRg3wl0/AmTqJgQWJFbFoRi3nUNI4m+NKuAbpvrnY56biiP0UdC/UdYJVjYrYd7tQVA 6bVJm9JKxMMFe8nnOg0sj1p24lRaDBAa/uzLhTVgAjCkBJGMs9DEBq8c= X-Received: by 2002:a05:6214:5690:b0:6d3:f984:1a82 with SMTP id 6a1803df08f44-6d3fb858e8bmr57294546d6.31.1731706624177; Fri, 15 Nov 2024 13:37:04 -0800 (PST) X-Google-Smtp-Source: AGHT+IFXgGPocZvxQ5d5NSN9sIHyVoelbF9oeCyFH1sagwzbxZngNT5v49ggcBb3EADnzAeGx3RMzg== X-Received: by 2002:a05:6214:5690:b0:6d3:f984:1a82 with SMTP id 6a1803df08f44-6d3fb858e8bmr57293356d6.31.1731706622468; Fri, 15 Nov 2024 13:37:02 -0800 (PST) Received: from ?IPV6:2601:188:ca00:a00:f844:fad5:7984:7bd7? ([2601:188:ca00:a00:f844:fad5:7984:7bd7]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b35c984691sm203656085a.2.2024.11.15.13.37.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 15 Nov 2024 13:37:01 -0800 (PST) From: Waiman Long X-Google-Original-From: Waiman Long Message-ID: <67e8e089-4df2-4175-851a-4b49b964eca4@redhat.com> Date: Fri, 15 Nov 2024 16:37:00 -0500 Precedence: bulk X-Mailing-List: cgroups@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RFC PATCH v1] blk-mq: isolate CPUs from hctx To: Costa Shulyupin , =?UTF-8?Q?Michal_Koutn=C3=BD?= Cc: ming.lei@redhat.com, Jens Axboe , Tejun Heo , Johannes Weiner , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, Daniel Wagner References: <20241108054831.2094883-3-costa.shul@redhat.com> Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/15/24 3:25 PM, Costa Shulyupin wrote: > Hello Michal. > > Isolation of CPUs from blk_mq_hw_ctx during boot is already handled on > call hierarchy: > ... > nvme_probe() > nvme_alloc_admin_tag_set() > blk_mq_alloc_queue() > blk_mq_init_allocated_queue() > blk_mq_map_swqueue() > > blk_mq_map_swqueue() performs: > for_each_cpu(cpu, hctx->cpumask) { > if (cpu_is_isolated(cpu)) > cpumask_clear_cpu(cpu, hctx->cpumask); > } > > static inline bool cpu_is_isolated(int cpu) > { > return !housekeeping_test_cpu(cpu, HK_TYPE_DOMAIN) || > !housekeeping_test_cpu(cpu, HK_TYPE_TICK) || > cpuset_cpu_is_isolated(cpu); > } cpuset_cpu_is_isolated() can be removed once the cpumasks can be changed dynamically. Cheers, Longman