Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp422761pxb; Mon, 8 Nov 2021 16:02:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJySEDnfMLENKh4lVcKx5GlMltGzNLyCeWQ0cIsMcNNAXWfAoqb0e2IL8azi/DTdvXB7VRZC X-Received: by 2002:aa7:d4d4:: with SMTP id t20mr4211389edr.374.1636416129514; Mon, 08 Nov 2021 16:02:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636416129; cv=none; d=google.com; s=arc-20160816; b=XpfqH3iVbn5GvTJXkgcGfo0Lj3BPAjwVIpINgaAgsNdtzrGwwWH/siWs6Rvl3AJYqu dP0XN92eI5KmuveHE+5hQn5em6rO9lVq114tuSu/064+5FUbCTOR0difeIcXR+OqY58y Awy9vXF9AfP5HDXIGnedMHgc3GpDjhuIyCKTDav40+8F2H6PKwm1cf9SN2Zweer7leFx pujGygt4/JX8sr7rqovV8dRYrTU+Kh8TMf7/PwvcjuUYPvd28r8xPr+XYe3CmBnXK5NU PKQFj7W/CXowpDfqb8R71AI5qWH4/soFQZMJUGtgfJYC6Y1Fl0gHbwDCGXhi8aSxz5A1 toNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=kKEuO5YXcbBlcHaiiVKVj0NBTGwhOLq1VPBkrxjpGEI=; b=QDMEY8QDGvV38g5/Sk7cn0Ig6eNe4gGrBgRrj81NRx2eMG5zxEHtHbyfmXVY0cUB25 d5Tt4cLf05QJD+UK7FS70whv2VIWZdAq++fXKmd0epeNrLVinjZ86aKQAmkxBhSD3wPd sQJ3DD/VjuXaRe3QXEvqHs3oifgP5+hU1ccQpR3618+AwdLbbG6pNBj5BJNdXEHKZ5bY wNU23Wg3O5XbLhd5m0QLOMEYxECFxX6QlXW6AmdgEsvrZ7xccR6xkNoY1dwnSqowjDP+ iqJk8bVtCiZvps5BWJcBNbuQvWsiKYqO4MTLGnHmayM4NL58DBw9Xo0xpkXkFpRIQZBr SZQA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id di19si30804599ejc.771.2021.11.08.16.01.11; Mon, 08 Nov 2021 16:02:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240408AbhKHRe4 (ORCPT + 99 others); Mon, 8 Nov 2021 12:34:56 -0500 Received: from mail-pg1-f181.google.com ([209.85.215.181]:44570 "EHLO mail-pg1-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230348AbhKHRey (ORCPT ); Mon, 8 Nov 2021 12:34:54 -0500 Received: by mail-pg1-f181.google.com with SMTP id p8so14448035pgh.11; Mon, 08 Nov 2021 09:32:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=kKEuO5YXcbBlcHaiiVKVj0NBTGwhOLq1VPBkrxjpGEI=; b=wis6nSqm3DsWoYY3ny6WqnHW28ojTbggo3bHbVAfaIjHLAdj+N96De7gbhDpovaikp 0Yqes43as2Jf0n2Z8rwWWGRfCozoPBikUL14qNsgWTswQQHbGx8pCiUMeiiGaM7/O350 nRxMAWFbKfCWbmEsUy4d9vexbbmiD0uCiU8C1EIhNrl/V6XVed5DUYe14EZflNbFO3wT N6D1fRAtwdH10xjVizOq1WAQJiEConSdKZUsredT+auxvbU6jxH3U6VK5TxDOw/6G6+8 spBV1duNAFYSJ+Xqf9jqh/7OajhU2jdsUlwfp0axSMJKU5UejwSrwm0VjcfuDSf+OT45 /v5A== X-Gm-Message-State: AOAM532j29ke9iJqRuNSieBcPbA+/uex07Q21Iw0ebYQRcqFldegnw51 ye6WWqvVGZ13tkSwRmkPhX/Aw4myWSJuew== X-Received: by 2002:aa7:808e:0:b0:493:f071:274f with SMTP id v14-20020aa7808e000000b00493f071274fmr937796pff.37.1636392729209; Mon, 08 Nov 2021 09:32:09 -0800 (PST) Received: from bvanassche-linux.mtv.corp.google.com ([2620:15c:211:201:4ca8:59a2:ad3c:1580]) by smtp.gmail.com with ESMTPSA id j15sm16588841pfh.35.2021.11.08.09.32.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 Nov 2021 09:32:08 -0800 (PST) Subject: Re: [PATCH 2/2] scsi: ufs: Return a bsg request immediatley if eh-in-progress To: Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" Cc: "linux-scsi@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Adrian Hunter References: <20211108120804.10405-1-avri.altman@wdc.com> <20211108120804.10405-3-avri.altman@wdc.com> From: Bart Van Assche Message-ID: <06c95606-ac89-5750-224f-04c72b5cc111@acm.org> Date: Mon, 8 Nov 2021 09:32:07 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/8/21 9:24 AM, Avri Altman wrote: > I am not sure. I would expect a retry / polling / other, if any, to > be done in user-space and not in the kernel. e.g. a common practice > in the code that send SG_IO or other ioctls is to retry on EBUSY. Not > sure that this is the case in ufs-utils though. Shouldn't we aim to make sure that user space code does not have to use busy waiting? Thanks, Bart.