Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp67579lqs; Thu, 13 Jun 2024 04:13:06 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVPr31Yd/HaIkN4uJE0uSU/CLnRY3oznfb+Sw0LZpG1QdwWXD/77Jbyqpc5jtiJT5zEMkKstqr6hwWxuAul+DQHqmfSBybo9aTpLVsokw== X-Google-Smtp-Source: AGHT+IFMZ3b3vGLqYbXH7EQPYzm94+ngsnKXiccMDvQehHaptCdyIhDWCymOTNIcU2zz+burwX2x X-Received: by 2002:a50:cd91:0:b0:57c:7599:2c67 with SMTP id 4fb4d7f45d1cf-57caaaf188emr2778762a12.37.1718277186737; Thu, 13 Jun 2024 04:13:06 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718277186; cv=pass; d=google.com; s=arc-20160816; b=1Aqs8HrtA1FlVA4WSYdJR9lku6LjIG4vJ64QDP6wE/hFim81F5IcRoOajDEtV2Pl+p SmPOXZ3TRRX/lhzqn9sL9DqXS0M9CPBRzctf1kNcU69+mawQ3GY8c27SUP/NQVHuDLYa G4VsojfLzkmioGN2A8jsiHqRHPzqtY/1ppb2m/FOETQeln98eVeAAyNAqM9Fonvaw2g0 RYMbLeqcBi9dL2WkXmvbIHvuWocUf4q+eFU76ApgrzIuNcGVBcOUft5w3dPazYvhovW8 uH9+TRVcTUmy4kehkh7d014i5E0KfF4LoI/xZy8j8XaS5yTyQ7ZtrwquOiyUYnD4Eq9S dEzA== 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=r5xQob93awwH8AHPQnk1aPKPoTke8Y/tJve0giiYzgk=; fh=oaXDH2nzNJ5m0HmtbMj6WAJYga1u63UTT5gMAwdnVJM=; b=sAMaWuYmb4uhjYKE4M7oooq7OxsErI6LMchpNvj5IvNsxSWu9OwH/WjTrEUevWL83S cibDW67XVhCbwz1UtyUy3T+aIajI7du/Hs5kBva8EzbvluUdhmhxXxgh5qkeVBDwfQDK q9+2pzQNypniycvSKo450t3cfb8NIlEeVaR0yRPJerTFI8CfjF63jLfbTCxfAZhKMcWA v/K+eu9tffnPlohcP/VVO11A0ZZpz656JJm64ZhWbwtXl9wX2c3WABWDBbwqBtZhMeh8 TbMcWrEP27uoWjUL8yZeHdbLEXoPTJ2fCeZDjhYz8gs2YoIEPZot+PRsFn9x7i0kGH0K Ugww==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FaHvTBms; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-212779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212779-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72d6983si601507a12.64.2024.06.13.04.13.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 04:13:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=bombadil.20210309 header.b=FaHvTBms; arc=pass (i=1 dkim=pass dkdomain=infradead.org); spf=pass (google.com: domain of linux-kernel+bounces-212779-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212779-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 52FA81F22187 for ; Thu, 13 Jun 2024 08:08:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 2803A13D261; Thu, 13 Jun 2024 08:07:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="FaHvTBms" Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (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 7F6FB2119; Thu, 13 Jun 2024 08:07:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.137.202.133 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718266078; cv=none; b=D8oZ1wKR16X42Jf/lQDRD2vGwFAqNDKmiz1V8FMkLZIc+uCn6IhhWs+Kx43TRazkGL9DZeQLSVgxH3KfCQHsNudlYZUN3RlXAu+5wlqaruuRUk7NwjFDg0uLwesSboZPUW3l94Pmwo9jVZUA4zI2DwhtdQcIIIfY9JefcGGCjRg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718266078; c=relaxed/simple; bh=SmsNy15uyD/TzUDtWIhCgHtRNEFA5w6AYmsB1+aVIdc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=fFWwXKj3DX+FYjCF6FVZenyS6kNacoX1mMmT9/6+1ccbpVu7OR3an0KVX1RwNi6AAZ7PLXHExd2s4MJGHOCk9lHPzZ+TcKtv9O+9YfDfvAO2S7MgGaHL/gRT9fFiB3yRtl6DPYGmID6Pz+WiFW+2U3pkjBkgDMEFfj3VKYKp9qM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org; dkim=pass (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b=FaHvTBms; arc=none smtp.client-ip=198.137.202.133 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=bombadil.srs.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=r5xQob93awwH8AHPQnk1aPKPoTke8Y/tJve0giiYzgk=; b=FaHvTBmsMRohvGi7Ehm7hs98ym 6We1O6sdIiZomj19tkfeIxL21W8cxoP0TnTFn5V/uwBnVnBlsZCoG/k+ZiIf9uy2I7vXydklQct5g rcJwTEi/too8DQF84dLKmRd4u6Ni+eEFi2Cr7oNd5qV3yDMK9qOcX+5pfthzOISLd19strlI71wDr cDcuFZEN4ZN/SxTU+HlN9rh7HZBFz7rrltyF+key+ylHEPp9kAXldXk84HtMw8hQ1VE0mOCal6TZc kg5aK3UhAiW6HWq7fejp8cPKM+PlXPtIzgxSOqySk05Tr9wV8fWCBGkhWLZatKGK21QWRcQ/ANqSc MddvaFuQ==; Received: from hch by bombadil.infradead.org with local (Exim 4.97.1 #2 (Red Hat Linux)) id 1sHfUw-0000000Fce0-1PzS; Thu, 13 Jun 2024 08:07:54 +0000 Date: Thu, 13 Jun 2024 01:07:54 -0700 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , hexue , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] block: Avoid polling configuration errors Message-ID: References: <20240531091015.2636025-1-xue01.he@samsung.com> 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=us-ascii Content-Disposition: inline In-Reply-To: X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html On Wed, Jun 12, 2024 at 02:53:27PM -0600, Jens Axboe wrote: > > So we need to ensure REQ_POLLED doesn't even get set for any > > other I/O. > > We happily allow polled IO for async polled IO, even if the destination > queue isn't polled (or it doesn't exist). This is different than the old > sync polled support. Yes, and for that to work we can't start returning -EOPNOTSUPP as in this patch, as BLK_QC_T_NONE an be cleared for all kinds of reasons. So if we want some kind of error handling that people don't even bother to poll for devices where it is not supported we need that check much earlier (probably in io_uring).