Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp76593lqt; Wed, 5 Jun 2024 18:09:14 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUtlgWWsmH2qTDU4L+9lLYGN8qsXp43B4qbjbWI9vU3TRqqYpa9vQZBzwjbSZc9FtNaW+YIXwpIi3LEyNwmWKIU0NFj+CtKdLqh8MtlUg== X-Google-Smtp-Source: AGHT+IGBWgmS0rffvIqLSL79ZsnsLFmtgaNbZcSqInJhDHJjKWlIkC3eQyKiL1dbgykTWRCLqGi1 X-Received: by 2002:a17:90a:be0b:b0:2bd:eb72:9fd4 with SMTP id 98e67ed59e1d1-2c299a475ccmr1542294a91.23.1717636153795; Wed, 05 Jun 2024 18:09:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717636153; cv=pass; d=google.com; s=arc-20160816; b=CP/JbT5ZYAJHVoUsJ8UnvKaZUKI2smvSlIZZ+7epR1TGYyjo6ZOQMs0FKVGgETSnHi TprEgpSVmqH+6RwGY+aDtig98m/Niv+PpQdmLQ43s2fhjXIt/H/wVt9UdxW5LofTiowF QtmsX0Y8G10lqXdO/MCMi+m2dqHdU+FzWqAFW3vxkdjRTF77k5CpZgFHHTlQrWB98gVe 0v4asNGaPTBZv6tuKmR1wdKK4s1RCRkcZ1V/CUHLBVR+DHkf2U1o+gTBXYarp+tIiKZX CSOXPYQpdRoElCwS7dZHMCmIpiKdf7vgo72zhUd/rTEjc47cMXURaIeXfBbQeorIoJSZ 3zNA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=references:dlp-filter:cms-type:content-transfer-encoding :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :dkim-filter; bh=DyJq680hs+B+mq6sTVl9ih/9wYgktdGjE6kStgD7w08=; fh=sesSvl+BAZ1LmbFrh7s9qwyEQoqkJ8r/b6DXobkdvKg=; b=aZGK9zC749JLnL4CwDNuWZ9Mj4hYRhMtdFdzEGu2EMMaYHQOHfucYPc8BwWCcpltWv xQNZKBNc8UbpiKoc9vwiCKd7zZR0zKsBLRLdvqes8xEKDj/41RA/uAS776kwhhPFfY3u k4znC4+cHhDGVaPdqaWpKaDUpGZ/ZeuFSYAy2SQAlE8Vxvvv6n6WXh6VvgAUFwrCPq8W C2KdhGs6WKk6ML8gMTluwD55KwHNE2dti1D6bkrzXh7e7XJ6u2zQt+gAfDMAUiQAVnv9 1PTPyCuOMO9NOgFRfh/dsBxIs+IaN+sI3GWPk4bY/c9ZTKGKgpF3qBm2nWMidfQN93+W mcZA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZIgN7cxN; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-203491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de21971e35si245613a12.199.2024.06.05.18.09.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 05 Jun 2024 18:09:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-203491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=ZIgN7cxN; arc=pass (i=1 spf=pass spfdomain=samsung.com dkim=pass dkdomain=samsung.com dmarc=pass fromdomain=samsung.com); spf=pass (google.com: domain of linux-kernel+bounces-203491-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-203491-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 6D347281B5A for ; Thu, 6 Jun 2024 01:09:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id ED9411119A; Thu, 6 Jun 2024 01:09:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="ZIgN7cxN" Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) (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 E5E3FEAC7 for ; Thu, 6 Jun 2024 01:09:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=203.254.224.33 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717636145; cv=none; b=NrWFe27/Dpf4WX9S+IO0SG7dMg1yfQjfpx22z74aPMgEjrF7J+UiPtW0CK6kdFRDSGYoPrkfkBDhcbx523Ly/Btr86CbCLURONya4GD+JFNJRPfwSagZgsX4awbRL/ALQiODDQgrraahevWLmEB1jDI4DecD+DtRsj0iqrqUjBI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717636145; c=relaxed/simple; bh=WOwjFkABDSkF67Cfn91JPyWJhJHHMkC7rJpl1Vbtzug=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:MIME-Version: Content-Type:References; b=iyKaakvgvK3SildhIA+uhpAsU1qzm6JnNbSAIxvX2QGoBBxLQGFhx+p5k16oEN1BsL3AK7kYojMBryjA7YefQvRi2qKF4quQUVJQrkbw8ovhrvNklcSjX7h7frkim6KBfSKFbpUGYk+qDQZAMKjfrucT3Iw9rPpeZ2XwPOnZfzE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com; spf=pass smtp.mailfrom=samsung.com; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b=ZIgN7cxN; arc=none smtp.client-ip=203.254.224.33 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=samsung.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=samsung.com Received: from epcas5p3.samsung.com (unknown [182.195.41.41]) by mailout3.samsung.com (KnoxPortal) with ESMTP id 20240606010854epoutp031831c9b99a6d7d838bced238689bfd07~WRPbKavHY0729507295epoutp03m for ; Thu, 6 Jun 2024 01:08:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout3.samsung.com 20240606010854epoutp031831c9b99a6d7d838bced238689bfd07~WRPbKavHY0729507295epoutp03m DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1717636134; bh=DyJq680hs+B+mq6sTVl9ih/9wYgktdGjE6kStgD7w08=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZIgN7cxNkIAB3VLSBJ8SYZAQUfgaM6BtzYwZI8p8A1/KDD9Go5QIXPY3zqTeYmVuV NXAGKrKDfwKOx27VrSJB7KQv5fTctRmCSdkkByVDRSoUvmIhwPTHZOB7zxs0ud1CuR HpCi60T8AhkdSKDZtAB/8Mnh5rYdYmyLctpYq4gs= Received: from epsnrtp2.localdomain (unknown [182.195.42.163]) by epcas5p2.samsung.com (KnoxPortal) with ESMTP id 20240606010854epcas5p20bf2fe2a5e44ed011503953503539e67~WRPasaZqh1759917599epcas5p2o; Thu, 6 Jun 2024 01:08:54 +0000 (GMT) Received: from epsmges5p3new.samsung.com (unknown [182.195.38.180]) by epsnrtp2.localdomain (Postfix) with ESMTP id 4VvmS441vyz4x9Q3; Thu, 6 Jun 2024 01:08:52 +0000 (GMT) Received: from epcas5p1.samsung.com ( [182.195.41.39]) by epsmges5p3new.samsung.com (Symantec Messaging Gateway) with SMTP id 69.3C.10035.42C01666; Thu, 6 Jun 2024 10:08:52 +0900 (KST) Received: from epsmtrp2.samsung.com (unknown [182.195.40.14]) by epcas5p2.samsung.com (KnoxPortal) with ESMTPA id 20240605090147epcas5p243e0e3fa55f586adf5f6c2e539a6d9fc~WEDBbCZBd3227032270epcas5p2z; Wed, 5 Jun 2024 09:01:47 +0000 (GMT) Received: from epsmgms1p2new.samsung.com (unknown [182.195.42.42]) by epsmtrp2.samsung.com (KnoxPortal) with ESMTP id 20240605090147epsmtrp21f023cfc18084f69a4050032542406fb~WEDBaMj2t1583515835epsmtrp2h; Wed, 5 Jun 2024 09:01:47 +0000 (GMT) X-AuditID: b6c32a4b-8afff70000002733-a0-66610c246d37 Received: from epsmtip1.samsung.com ( [182.195.34.30]) by epsmgms1p2new.samsung.com (Symantec Messaging Gateway) with SMTP id 8C.5B.08622.B7920666; Wed, 5 Jun 2024 18:01:47 +0900 (KST) Received: from testpc11818.samsungds.net (unknown [109.105.118.18]) by epsmtip1.samsung.com (KnoxPortal) with ESMTPA id 20240605090147epsmtip1f215549f44d48ac600e2f28f5332455d~WEDAudVSF2721427214epsmtip1i; Wed, 5 Jun 2024 09:01:46 +0000 (GMT) From: hexue To: hch@infradead.org Cc: axboe@kernel.dk, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: Re: [PATCH] block: Avoid polling configuration errors Date: Wed, 5 Jun 2024 17:01:40 +0800 Message-Id: <20240605090141.3873159-1-xue01.he@samsung.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpgk+LIzCtJLcpLzFFi42LZdlhTXVeFJzHNYMU0WYvVd/vZLE5PWMRk 8av7LqPF3lvaFpd3zWGzODvhA6sDm8fmFVoel8+WevRtWcXo8XmTXABLVLZNRmpiSmqRQmpe cn5KZl66rZJ3cLxzvKmZgaGuoaWFuZJCXmJuqq2Si0+ArltmDtBmJYWyxJxSoFBAYnGxkr6d TVF+aUmqQkZ+cYmtUmpBSk6BSYFecWJucWleul5eaomVoYGBkSlQYUJ2RucF1YLLnBVb535h amC8x97FyMEhIWAicXqBXhcjF4eQwG5Giafrj7JAOJ8YJXZuXcgM4XxjlGj8f52pi5ETrGPL 671MEIm9jBL7/z1nhHB+MEp8332dBaSKTUBJYv+WD4wgtoiAqMS96VfAbGaBAImGzmdgNcIC ThIv5hwHm8oioCrxaNFDsDivgLXE3TN3GSG2yUvc7NrPDGJzCuhKXDo9jw2iRlDi5MwnLBAz 5SWat85mhqi/xC7xcrIvxG8uEn9OlUKEhSVeHd/CDmFLSXx+t5cNws6XmPx9PdSqGol1m9+x QNjWEv+u7GEBGcMsoCmxfpc+RFhWYuqpdUwQW/kken8/gYYJr8SOeTC2ksSSIyugRkpI/J6w iBXC9pC40ruVHRJUDYwS82+/ZprAqDALyTezkHwzC2H1AkbmVYySqQXFuempxaYFxnmp5fAo Ts7P3cQITopa3jsYHz34oHeIkYmD8RCjBAezkgivX3F8mhBvSmJlVWpRfnxRaU5q8SFGU2Bw T2SWEk3OB6blvJJ4QxNLAxMzMzMTS2MzQyVx3tetc1OEBNITS1KzU1MLUotg+pg4OKUamHi8 I7/bcFxfErDy5+UqXZfvu2Zn68o+Tjm4walkwh7xDvEblltkalLdZrKG77J+3+1+tZ3pZPlR mcuZh7Nu/tFovG13+x6f4kQzTv0LabIpKT9rQm7u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+vitT+u7Or12G2xnUWOT+LvBtGuL2Ff1nr45Won+L33cC4y+3g3bGbSQq3Hm5KO bKlb/tPZLzo6syPm8vId156+YOJSYinOSDTUYi4qTgQAKdTRlsoCAAA= X-CMS-MailID: 20240605090147epcas5p243e0e3fa55f586adf5f6c2e539a6d9fc X-Msg-Generator: CA Content-Type: text/plain; charset="utf-8" X-Sendblock-Type: REQ_APPROVE CMS-TYPE: 105P DLP-Filter: Pass X-CFilter-Loop: Reflected X-CMS-RootMailID: 20240605090147epcas5p243e0e3fa55f586adf5f6c2e539a6d9fc References: On Sat, Jun 1, 2024 at 00:38:49 -0700, Christoph Hellwig wrote: >On Fri, May 31, 2024 at 05:10:15PM +0800, hexue wrote: >> Here's a misconfigured if application is doing polled IO >> for devices that don't have a poll queue, the process will >> continue to do syscall between user space and kernel space, >> as in normal poll IO, CPU utilization will be 100%. IO actually >> arrives through interruption. >> >> This patch returns a signal that does not support the operation >> when the underlying device does not have a poll queue, avoiding >> performance and CPU simultaneous loss. > >This feels like the wrong place to check for this. > >As we've dropped synchronous polling we now only support >thead based polling, right now only through io_uring. > >So we need to ensure REQ_POLLED doesn't even get set for any >other I/O. Sorry I'm not entirely clear on the impact of REQ_POLLED in this context. I searched that REQ_POLLED is set for request if polled in io_uring or io_uring_cmd, but here we just judge the state of request_queue. Do you mean making this judgment here may not be a good choice, because it may affect other IO (by same path), and this change should be just targeted at io_uring?