Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp203368lqb; Thu, 23 May 2024 15:43:38 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVLkOjA7KB8ga+GCuL9BG2jrjPdKg6/tkscZHsud9iXhK1fptfnC4IlM+aXd7TV8q1yLIBr6D43HjA+6Xj4JQzaLHgRkX3CwRjdPPTHuQ== X-Google-Smtp-Source: AGHT+IEyId/yssPnOpIEDqQenm582MY5sG1P9JNZ7ecXxva3of5A6iYUfDhbB4FJZeRSccUrMTNJ X-Received: by 2002:a05:622a:284:b0:43a:b9c9:a25a with SMTP id d75a77b69052e-43fb0f19ee4mr5153741cf.56.1716504217672; Thu, 23 May 2024 15:43:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716504217; cv=pass; d=google.com; s=arc-20160816; b=Oi2RKZUVpPFBOCcUcQ6TlSZLEQdr5KFHvqzEetjJ6qXBXz9urdPMJeLohuWiGPx3Mc lmT5KAxBXw04oH1U/bDLzo0K3DV0YfhFLs2SrW/OoMGNAI7mGrA7yrrGTqZNiuZVthgE +m5IzsBky+3ZSsc28aHkEEbXh7khLHumAWBpcNTJX/Lz/gUe0wCsW9VydwcvUe1hZSmo 8+uA2IgI2+7onGrtvcW3cRIUC+JXcB6hLsM53If8hw8lsC+GfZUtEXn3r+5r9nzwzHKI 5XD6vlP/Jlnpa/GXmXD3EHBAC0X6I4ARJGwe0OLVBQ2ULMwvRsh7E9w3C+Y0EjKdbmws bf9g== 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:content-language :references:to:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=vl2befUNFkoJj/EceVT6ZOM7RblnlmPSc3ZIyQuGZzs=; fh=viGaT0IR/IFbRY+XnDLovBVJs2wdvISZEop9p7Ieopg=; b=Agx3N17bvOuxsZIjveHldkIhGl2BpVKK/FTaUfrMk420sHxVflwfnV7itKJfdhQRWE GWgq6jI6RAI86oWRoJPdipbeQ7/30NutZz3mRXdrnzsgg7uLrNFprf2pAh1OGKm6gKR/ U9+up6afni3oLGlFd24SzuoHaF1J13KYAqRe75nLTrzl89DWFHEceVVsQMjk+lTPqtAS J7tlAEXNH3hIc8V4C5LKDtzRWgJ/84TmEUawU6e5D8rbbwQ9HA4YkqHmkgHvo5xcTi1U ie9PtkzXcnLUYQhpXyKkWEiXCO8i4S3gfiIvRO5heWG/vc0X2GwCscrAJZymcxw5ZmEP kA6Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=QUcsqlRd; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-188084-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-43fb18d3edcsi4316091cf.711.2024.05.23.15.43.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 15:43:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-188084-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@acm.org header.s=mr01 header.b=QUcsqlRd; arc=pass (i=1 spf=pass spfdomain=acm.org dkim=pass dkdomain=acm.org dmarc=pass fromdomain=acm.org); spf=pass (google.com: domain of linux-kernel+bounces-188084-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-188084-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=acm.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 543761C24500 for ; Thu, 23 May 2024 22:43:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 28FD812838F; Thu, 23 May 2024 22:43:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b="QUcsqlRd" Received: from 009.lax.mailroute.net (009.lax.mailroute.net [199.89.1.12]) (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 B9F7382897; Thu, 23 May 2024 22:43:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=199.89.1.12 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716504208; cv=none; b=Uwp8KJSyHWBlfDnj1nl/3hM11tZWMWX397eLgcVyo+ElDywNhPLnYXMCcRflRtq4fZvYIILeRaWOHee3tPzoyiyjpxTeC61XEfPwDHxUeyU/BcLFm1tVjuu4yp548CDSmTTMkRZZQM4Voaae0E1CJr6XhLucB7diEXWX+eyKUk8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716504208; c=relaxed/simple; bh=7ff1AHgvlrtg/MrkCdHs62zO9804eyEfakWj1+z8oy4=; h=Message-ID:Date:MIME-Version:Subject:To:References:From: In-Reply-To:Content-Type; b=NdffbBVSauOXe3hn3BafzrysYGPPB1guecv4lcbS/Q3hy/jhWtRap5/qD8oR0+NTVcE/dX7Bgkhus86DTR/ax+q134EBG2/Nbhr8vwJU70HnOz1cfFyvtH9GQcQFOogx88Q+3P/V44Cj16jING+ADabXnyHacSEUygc67Z97HSY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org; spf=pass smtp.mailfrom=acm.org; dkim=pass (2048-bit key) header.d=acm.org header.i=@acm.org header.b=QUcsqlRd; arc=none smtp.client-ip=199.89.1.12 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=acm.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=acm.org Received: from localhost (localhost [127.0.0.1]) by 009.lax.mailroute.net (Postfix) with ESMTP id 4Vljr84b7QzlgMVN; Thu, 23 May 2024 22:43:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=acm.org; h= content-transfer-encoding:content-type:content-type:in-reply-to :from:from:content-language:references:subject:subject :user-agent:mime-version:date:date:message-id:received:received; s=mr01; t=1716504196; x=1719096197; bh=vl2befUNFkoJj/EceVT6ZOM7 RblnlmPSc3ZIyQuGZzs=; b=QUcsqlRdMSmf5MqXe0s19sywYlH4abTBdwJ/uweM SlCz2anzBuTzJ67dXL8iR2UEJA9vkjcuUCHcZB+dFzpNW1fcuDoX4Tmfy1ey9tNP TmjLtY+CPj3wpAcukUOCC+jYGS05t9Ul5frrkCVF9wwwP7LwuKg6diPd4YZ+xAQs 2V3l0hffETqE2b+QnEr9ZM90SlIwEV53TvvVbJ94hpVDNh7LtlmUYO7nzPUj2vX6 IH1d9+w7bjpotzuXADsPABxjycG2d4OAsKP9DsESErLiSmcrW9HoPllwUUI+TPr1 Bx0mnk0t8jYWbzKArvrJ0YDgpeJc3pA2cATFVldt2k3quA== X-Virus-Scanned: by MailRoute Received: from 009.lax.mailroute.net ([127.0.0.1]) by localhost (009.lax [127.0.0.1]) (mroute_mailscanner, port 10029) with LMTP id WzqY_q9Owkow; Thu, 23 May 2024 22:43:16 +0000 (UTC) Received: from [192.168.50.14] (c-73-231-117-72.hsd1.ca.comcast.net [73.231.117.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: bvanassche@acm.org) by 009.lax.mailroute.net (Postfix) with ESMTPSA id 4Vljr10V97zlgMVL; Thu, 23 May 2024 22:43:12 +0000 (UTC) Message-ID: Date: Thu, 23 May 2024 15:43:10 -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] ufs:mcq:Fixing Error Output for ufshcd_try_to_abort_task in ufshcd_mcq_abort To: Chanwoo Lee , alim.akhtar@samsung.com, avri.altman@wdc.com, James.Bottomley@HansenPartnership.com, martin.petersen@oracle.com, stanley.chu@mediatek.com, quic_nguyenb@quicinc.com, quic_cang@quicinc.com, powen.kao@mediatek.com, yang.lee@linux.alibaba.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20240523002257.1068373-1-cw9316.lee@samsung.com> Content-Language: en-US From: Bart Van Assche In-Reply-To: <20240523002257.1068373-1-cw9316.lee@samsung.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 5/22/24 17:22, Chanwoo Lee wrote: > An error unrelated to ufshcd_try_to_abort_task is being output and > can cause confusion. So, I modified it to output the result of abort > fail. This modification was similarly revised by referring to the > ufshcd_abort function. > > Signed-off-by: Chanwoo Lee > --- > drivers/ufs/core/ufs-mcq.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/drivers/ufs/core/ufs-mcq.c b/drivers/ufs/core/ufs-mcq.c > index 005d63ab1f44..fc24d1af1fe8 100644 > --- a/drivers/ufs/core/ufs-mcq.c > +++ b/drivers/ufs/core/ufs-mcq.c > @@ -667,9 +667,11 @@ int ufshcd_mcq_abort(struct scsi_cmnd *cmd) > * in the completion queue either. Query the device to see if > * the command is being processed in the device. > */ > - if (ufshcd_try_to_abort_task(hba, tag)) { > + err = ufshcd_try_to_abort_task(hba, tag); > + if (err) { > dev_err(hba->dev, "%s: device abort failed %d\n", __func__, err); > lrbp->req_abort_skip = true; > + err = FAILED; > goto out; > } Why does the word "Fixing" occur in the title of this patch? I think that this patch does not affect the value returned by ufshcd_mcq_abort(). From the start of that function: int err = FAILED; Thanks, Bart.