Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp811023rdb; Tue, 23 Jan 2024 16:25:03 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCFyaKpCPiMzk0rInvUPLZY9AyyU3eChgGinEgMCHqb6FqNwbtMbtI2eZlyCKXUWZowOxw X-Received: by 2002:ac8:5557:0:b0:42a:50b3:d264 with SMTP id o23-20020ac85557000000b0042a50b3d264mr1451452qtr.22.1706055902869; Tue, 23 Jan 2024 16:25:02 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706055902; cv=pass; d=google.com; s=arc-20160816; b=J9m/6en0y33xXbN2q6I4/R7UZ9wOa+K2vE9LDsf3esreYqMvQjkDbM9rX8Esh+mAPn 2UatKCzzuSJy88uFTyUDIZuRGrZrXxeIp1i/2xtURjUn+66VahetgpydAUx9DI8sp1J1 L4hGxcEqqBjsXO//zs6bbVcwoXJxi3WeomrVrpq6leNY3Xxfvu57l/iBz4FFGFPZgtek P+3R9me+wp1pfDOfqvlTvPqwr09+ReQt201ftTc9f9UdVRHby1lq2cifHHvd4sDIcIMW KrAW1mIEXACjTDj2nstDRPDPASDkOE1rh04T4FvENLJXT4wtION26vWplqwaHH4ndnko XqQQ== ARC-Message-Signature: i=2; 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:from:date:dkim-signature; bh=oYTN8ome+CxuG7BZfLTx74gUUZSxMsFlzHcqYkFKxT8=; fh=Gh6x+e9mw8g8SRS6V4N9EyzKoKG4F5lTyaNhcNgkGBg=; b=sGXV3WNwjcSluNRsKXSUtAzV79EzlXnB7heXNh02t2aARdXONT7wXDOcaeDpjRcIXr nnOJJ3mTV2Qc654CRs0H5aJay353DJNlBBEW8MD9vV1fQEVYIhVvpZl2Atn3cYl6CtHD IgRsUNwWZd7dq/FwG50pZICFdK3BUVyIe0iDHsPkZ26BCdubHmihOL4bqMKP4ZQxnS+y 75pqTFCwleJC6vFUz1cYmv3ifL8EMdp5d6I/XoOIHE2KMq3nqbeFt9Fs+ei7Fq7yBid7 Rp3rQlgagV4l76ffKBIBIpVLUoSuXftDFuZO9oAt9PDw4lO5E/O4RVMUz+G1mR9DyuJi /QCw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=GD8m5pAf; arc=pass (i=1 spf=pass spfdomain=layalina.io dkim=pass dkdomain=layalina-io.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-36220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36220-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id w16-20020ac87e90000000b0042a458e045dsi4291232qtj.106.2024.01.23.16.25.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 16:25:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-36220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@layalina-io.20230601.gappssmtp.com header.s=20230601 header.b=GD8m5pAf; arc=pass (i=1 spf=pass spfdomain=layalina.io dkim=pass dkdomain=layalina-io.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-36220-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-36220-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 9DE6F1C232DC for ; Wed, 24 Jan 2024 00:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0B8C217CD; Wed, 24 Jan 2024 00:24:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b="GD8m5pAf" Received: from mail-wr1-f45.google.com (mail-wr1-f45.google.com [209.85.221.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 6D2D2627 for ; Wed, 24 Jan 2024 00:24:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706055882; cv=none; b=lsxzV1DAAg3MEv5H0+fFhpbiWRcQpx1MFW6Scxd6szb6lI7PGJStKtSpODsuvMcLOVNqTzkeKxUGrk+ifZOtDaArNvlOYvTVBBm/Pmr5phS/pET1+9k/pfN2q0fAEifpsv+qKY0VtJnLN17gJV+2p0AIHgha9HpMzH56FCsIvQ0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706055882; c=relaxed/simple; bh=hMh6ehSMtCLiTnXPJTwHRtndnydv9lJWmV6MQHsynhs=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=YPshepfKK05hx0WAX+eMHtkR1qO3vK04R05LMrVzBhiHg9MvoCtzcoZI6+3VF3eB4VMik7iNBxxN8HtvAnoj+hnn06RQCigz6ntStXvD0HVfD5zSEAC515AFagsQL1jXF6HmpfVWMHMjfPygap14hIrQ0E1TGjx0a/dkS3i2EoY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io; spf=pass smtp.mailfrom=layalina.io; dkim=pass (2048-bit key) header.d=layalina-io.20230601.gappssmtp.com header.i=@layalina-io.20230601.gappssmtp.com header.b=GD8m5pAf; arc=none smtp.client-ip=209.85.221.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=layalina.io Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=layalina.io Received: by mail-wr1-f45.google.com with SMTP id ffacd0b85a97d-337d5480a6aso4681159f8f.1 for ; Tue, 23 Jan 2024 16:24:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=layalina-io.20230601.gappssmtp.com; s=20230601; t=1706055878; x=1706660678; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=oYTN8ome+CxuG7BZfLTx74gUUZSxMsFlzHcqYkFKxT8=; b=GD8m5pAfyOo9iUby3bTRSx21BPUEfdEbVbNqKmiJsALBZAcjwokmC89H0HsCihCPlX 7MniI/ulDEy1YhUuIj1XNvH0AGF4+Bu6vSjAbwa912pvvcBmQEXijUtIVAYvuecjdaCB 7MJB/GEcFJZcooXc4rLHmWFe71T6qbSKBXIafjhP+Km3Lqn88mBfTVisZL9xItVtm6TH Z8PUy5cuTuTukSRxqawi8kWxjGeL/aSYwaDnkRMxEL1A8qp4Wo2X8Jxux2BR6TunLWu+ /WRK4a0WxKXWjaxjovMqPMfs880PXhf4pls+5GdoTU6BAVShOpLflY21POjzSjGlY5A0 7NIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706055878; x=1706660678; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=oYTN8ome+CxuG7BZfLTx74gUUZSxMsFlzHcqYkFKxT8=; b=Cyx+suOXBTY5muPAT7Y9WKN8Z4gRo6mdEUINNARrNAVyR52oVb8LTMRnRj2rsxrCJO RVQhID/1DWv53MfSC/aCeNquB75E74K/hhBoYI2v9bVbb23JKyt7Hvm0PPGySw1vUThv /8tOtw8bIEHtuSEGH023cscs0mGRgrSPfpeF9HhjQu0Caid0NQN5BGOGJEiljiiVC0gW xvPVOQvHxY/zkIlMho4lFeRpZBCq708TZJV2XoesuwUwYp/MUkY5+zXVSm2pYDU7ltaP iHY5ojY35EpK3U57RxwTKU3JLlEyMdWDouWCnph3FwrWvPrQX1KumQAbCwbWC5cjjj2w 81QQ== X-Gm-Message-State: AOJu0Yz2GvXCjgKBqsF4VIv+Z/mB3DWntYbCVa5VzUCBDpL+beexzJn7 o7fyYszVdqyNrIamDG+PuJ3Ypc6Ek5XcTSqh7aGJiDck7IhUCiigBuK2WxfbfgM= X-Received: by 2002:a05:600c:2203:b0:40e:869b:4c12 with SMTP id z3-20020a05600c220300b0040e869b4c12mr568787wml.162.1706055878546; Tue, 23 Jan 2024 16:24:38 -0800 (PST) Received: from airbuntu ([213.122.231.14]) by smtp.gmail.com with ESMTPSA id f6-20020a05600c154600b0040e880ac6ecsm24156066wmg.35.2024.01.23.16.24.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 16:24:37 -0800 (PST) Date: Wed, 24 Jan 2024 00:24:36 +0000 From: Qais Yousef To: Jens Axboe Cc: Christoph Hellwig , 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 Subject: Re: [PATCH] block/blk-mq: Don't complete locally if capacities are different Message-ID: <20240124002436.dj5lpjpdc3uttbx4@airbuntu> References: <20240122224220.1206234-1-qyousef@layalina.io> 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=utf-8 Content-Disposition: inline In-Reply-To: On 01/23/24 08:58, Jens Axboe wrote: > 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. Is referring to it as compute capacity makes it clearer? Sorry I thought that's a common term. > > >> + return arch_scale_cpu_capacity(this_cpu) >= arch_scale_cpu_capacity(that_cpu); > > > > oerly long line here. This is consistent with similar long lines in the same file and it's more readable as one line. checkpatch doesn't complain about this being long; I think they look for 100 or 120 now. This is 86. > > > > Also pleas split patches for different subsystems. > > Yes please, the sched/topology thing should be a separate prep patch. Okay. I thought the norm to keep such small patches self contained as adding dead code followed by a one liner isn't always seen as better. But a split it is :) I'll give the sched/arm folks time to have a look before I post a new version. Thanks! -- Qais Yousef