Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp578691rdb; Tue, 23 Jan 2024 08:16:14 -0800 (PST) X-Google-Smtp-Source: AGHT+IFiQg3SPsk2HiqrCKFqAI0I+/irCMVnf/sVac1KWgfQ1fYSTLe9y25y/r36oNJomCX2qqoj X-Received: by 2002:a17:903:124b:b0:1d4:fd84:bee2 with SMTP id u11-20020a170903124b00b001d4fd84bee2mr4356319plh.7.1706026574567; Tue, 23 Jan 2024 08:16:14 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706026574; cv=pass; d=google.com; s=arc-20160816; b=z/SjpGiOKDnUSbJp7C3MOq7yqNLSHiqmHbT1YjuEkglh83mQiXFQOp41qPKe3gV83L XeTcLQQCrJW6klSdiOR1eOSwh/9luDr7r3hRADwOaUOQTbD2tn0dcsOcBerFEba5+qpG zKIRMxyx7N10JOIDbrrQG6VuL0C2/gxZOIUTWQAoGlUVtpuKpz7OKV8ZN4bn7qWVebPw ou+LzNU4339eINSIzDmT6HltNObDrYrA8wWkc47zIXHGs7weqOM0qC8v56Wt+y3+w3Y3 Fr0GMn8hpb9keB7M/Xdh6uSdqyluUG56e6wi7fAzXSqN0XTay1pdZUzPBCO0lHlNi9Ok At9w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=QCq8nDnOxhz7egI8at/3y+/B1QQQ2aCDP0fX/KoZQek=; fh=1VxhoaSq8BGiyukNSGe/OJmc7u/EasoWBhT2gqWsaz0=; b=q1M7IARhHQDUCMZrbz4a7JZfvRDiCbhSGDVIwRM7ojIXHoFLnfBSiFyl2msMLWW21Y BSqrX59ptGxNH2KiczEY+vhmgfDJmngdZfWgHoZNkJ1BaFB8GDwaJqsTmfmnRI6bh8p2 rIcLGtW34SQ//khDSqMI/aNZooSCtXnCdo34mK2AZx3WhNdh09L3zhf0bqyo3dPUR/l8 0aDXBw7+XZKC3LICCfgi2XqTewsZa1Q28Ud7yAneIFD3yKyui+eOjvowejO0VDI598Ru gIpxMRYvB+CcKgIFT7qc1erEZpjvGErumDYiyff/4woniVyqUCXP00rg+FjQ7DgM6gSG L9SQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=FaYWSg82; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-35609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35609-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id y5-20020a170902864500b001d70ad49fa0si9263080plt.356.2024.01.23.08.16.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 08:16:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=FaYWSg82; arc=pass (i=1 spf=pass spfdomain=kernel.dk dkim=pass dkdomain=kernel-dk.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-35609-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35609-linux.lists.archive=gmail.com@vger.kernel.org" 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6759128AC25 for ; Tue, 23 Jan 2024 15:59:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B6BCB6168E; Tue, 23 Jan 2024 15:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="FaYWSg82" Received: from mail-io1-f48.google.com (mail-io1-f48.google.com [209.85.166.48]) (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 50D2D60ED7 for ; Tue, 23 Jan 2024 15:58:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.166.48 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025533; cv=none; b=aLpUPIS8x3j7ritJbYp4KTbMJHfDM3wlmKzY9Tb1iSDVbji8VrHNWv4pbsmMSopaXL4eUIsjPeFzviziFiF9pz8tf96VYQlLAPRXUBX8cwtClLoh6xnax6109XJfF41sr5B6Vo5QoZveFxR6oFHZE3puGoTY+eYUizPp2I5yLYo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706025533; c=relaxed/simple; bh=9qIE2bfiFVPT+0QiWv+qdn9ncuMe3NLV+5xTbhnxIKc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=ZJbQVctvvgJG5dM/2Ov8roPIqYCZ9QXmufYHJZgbqgL3GXK30Yqpdkm/+kiVNsaWD5xkACaH+0bLg00xWljCr4qo+lV7Lj44sEMwdGnuZ/eUdZWKluBu/8ywtYe/e9DF114sAaW6nHLYuWbN/1aQlXElBjm/ly4MskTCBxEU9M8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk; spf=pass smtp.mailfrom=kernel.dk; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b=FaYWSg82; arc=none smtp.client-ip=209.85.166.48 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-io1-f48.google.com with SMTP id ca18e2360f4ac-7bed82030faso57947639f.1 for ; Tue, 23 Jan 2024 07:58:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1706025530; x=1706630330; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=QCq8nDnOxhz7egI8at/3y+/B1QQQ2aCDP0fX/KoZQek=; b=FaYWSg821j4LM6DJij6YqzWGB9kOsP4WC34zp1K83+kX3xxsGWc/G8nvx9B2MpL7rC k2I8yf1nzljxu6DqcDo05eFRbsfeG9VMR57KVw9Mfo331RGpCIvspJgPKKJMOXYiGkDz Uj9Lw0eeyttw1uA5kldQgMm2WsMYWfHTaib1rsTVJ/3JZRJ14EAFk46QFcE7J83idTCK UxfKJMJjEUnlNDlLpPk1l1aW9gVDmQAKUdH8T6crPmdcM9+xy0QXVCNRLMIVlNxM73ah P1evjD/xZgqCAev+zbWvt2mEIWrwYr/Fpci43AWC9bxerU2QFzDf1gORKKymzMmnBvu+ IYTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706025530; x=1706630330; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QCq8nDnOxhz7egI8at/3y+/B1QQQ2aCDP0fX/KoZQek=; b=CYy6PGbAwXJknbmdFJaTA7+q+d3iD/bdxXPaZb5QAPTvLUu+0sEJgeKf3EmQI9aHqX GvPp+RYjtTjm+5VHPCkUkxWTC9kQYUA3crVwvE8ZhZNKCfYR3Se5HtFckp9+43j7Y8Jc /J1yDUEQ6tnKZgKz1zmSM0uXlqQXqxBpTghQVwcMmuOIp1CYTzBf/g2OtbF23YHyrb9o JChfjea9cSowR3+f06foxSe2XhA0I/VTlFWmV93+YDjZwSCbNebQpmWfXAlpESE0vwOb TzwultNWlSsPXTu9Nfn3p+j795aKg41arf6e9RQ6aYaY9v2f181lT1xLPGSJyw4Ip/jz CMKg== X-Gm-Message-State: AOJu0YwEg8bgBuwXtOIW6udidrerDEmdBoRILnL1uEPDqthdXaMrxwjR zDXPJPRMh5u0qDO9MUv9eOtCOkdIMCdG0pxfAzos/y1pWU5Xvac2V1UUqNz0Ayo= X-Received: by 2002:a05:6e02:1be8:b0:361:969c:5b4b with SMTP id y8-20020a056e021be800b00361969c5b4bmr10247052ilv.3.1706025530677; Tue, 23 Jan 2024 07:58:50 -0800 (PST) Received: from [192.168.1.116] ([96.43.243.2]) by smtp.gmail.com with ESMTPSA id u15-20020a056e02110f00b003619fd1f271sm3695586ilk.69.2024.01.23.07.58.49 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 23 Jan 2024 07:58:50 -0800 (PST) Message-ID: Date: Tue, 23 Jan 2024 08:58:48 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] block/blk-mq: Don't complete locally if capacities are different Content-Language: en-US To: Christoph Hellwig , Qais Yousef Cc: Ingo Molnar , Peter Zijlstra , Vincent Guittot , Dietmar Eggemann , linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, Sudeep Holla , Wei Wang , Jaegeuk Kim , Bart Van Assche References: <20240122224220.1206234-1-qyousef@layalina.io> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/23/24 1:47 AM, Christoph Hellwig wrote: > On Mon, Jan 22, 2024 at 10:42:20PM +0000, Qais Yousef wrote: >> The logic in blk_mq_complete_need_ipi() assumes SMP systems where all >> CPUs have equal capacities > > What is a capacity here? It seems to be the chosen word to describe the performance potential of the core in question, we use it elsewhere in the kernel. But yes, could do with a bit more of an explanation. >> + return arch_scale_cpu_capacity(this_cpu) >= arch_scale_cpu_capacity(that_cpu); > > oerly long line here. > > Also pleas split patches for different subsystems. Yes please, the sched/topology thing should be a separate prep patch. -- Jens Axboe