Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1148427lql; Tue, 12 Mar 2024 08:33:50 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUb2Tf76UaDPwfGF8cBel7jJCLZSlMnzbHy+PUb2+Qh/D3m1MMETdVSEEld7Q9zRxDg7AtfTFNv+rZjEa8BFZViz5X5bX3S7YEisTb7ng== X-Google-Smtp-Source: AGHT+IERZx2GK3q/ewUWau3A9ifSdFrBR+uvFSR9Ay5r0hGodYdKkMzrJ58BFG2Y/evPnVw+osCt X-Received: by 2002:a17:907:168c:b0:a46:2643:8463 with SMTP id cx12-20020a170907168c00b00a4626438463mr4881732ejd.74.1710257630432; Tue, 12 Mar 2024 08:33:50 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710257630; cv=pass; d=google.com; s=arc-20160816; b=iSb0o5SkEWYY/5A416zP3CWBqbVEe83NVi4Aj1vlJUdWqOkRgMdBGHM2EJo1EiWEBA FbG070FkqJFsvWow+hswnGkEKCaP5LNXbjouOPyg4+4vAPQlV0dsWeEdovWppTpRsMHS OlpvXS5n4AKaYEqnpjVssFLQwHYaDvV4QPgpvRr4RmR1/gTQeUmDw/l3OTk7OfRCDPIO /RUXZnIk65sr12sR8MxvYqVuRoFXW2Ri3IWeY1V5VmG/R3Kv4iTZ+VvD2CgHy7Xvb51f ijou9C9iek3a4YG9NB59wpo0sCDM+3MLBGmVHcECaUKnHezUVPZHczZOt5mj/BBJuuY5 uZlQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=j53OhaUdNor3mQ/LpX8s3IrNzFb3Okutcd5V/IJzIh8=; fh=gy/dAJvc2z43Htgo+45YSdk3/7JM+7RTCuR3KyQoHmk=; b=MS1Y2egRKVclzkchKgZdkmoFu1rrarasigGCGyCL6e6C5xcgeXiGpdhjZQ1McXPAF2 jALVgN/EIYaO3YTCeHThtAjytSjj4dJN8hOEIw7A6/G6icccDsqz85+3i0PoRbG6MbgN AuCnGDBbtgEPe37PsQhAtGLr2judTB0WyfBhxexPwVvjL4vqX7AfWaUpWOkQ/kz46SW2 ykZUxa7xft7JcWhyKS1pju43M6pSyTZ0aqiAz6P+OIG3zpD6Lw3yfSvn7NFBda8jDj0j GutMLm+72kQI1zNUAbK1UjClXDk+9OtVtvEp7sEs6yVgP79en6SOcWcwIm479aAqmIU8 Z0kg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CzuU5doD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id by8-20020a170906a2c800b00a4646a17f3fsi572102ejb.696.2024.03.12.08.33.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 08:33:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CzuU5doD; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-100443-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100443-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 2E0FE1F21BCB for ; Tue, 12 Mar 2024 15:33:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D4C047D078; Tue, 12 Mar 2024 15:33:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CzuU5doD" Received: from mail-lj1-f171.google.com (mail-lj1-f171.google.com [209.85.208.171]) (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 5D3C17D063; Tue, 12 Mar 2024 15:33:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710257603; cv=none; b=ZewO/jmCZACHxssy4sAYX6JpQfOOp+/0nOljrgC2NU3Mt+ER8EsmHs+t+kDhkqc1D0WheJ+y7E88MVQzqUvEfJugR4R5C1m6fbkSsgQKkCyTKpG0IVdVTE0OC9RNtbtYHwv9rSDf7NFlLVOPK1+1Yk5RVw0S2RG2ztJQZ1yy3ug= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710257603; c=relaxed/simple; bh=j53OhaUdNor3mQ/LpX8s3IrNzFb3Okutcd5V/IJzIh8=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=pcfXfcYZsBtkwLBq/30qRAkVaQiF8KusiAi1y1848C6m5UP76rZhBqtABp1cyBSirI2OC8+eQsI/tAtaxXbJtqp9dnyJV7cTaWFuYakgjVVBb6gjGT/IZ/M19slAer0Kt9WgQU59BlrQNSc0vObefEyaSl7sQthAKlxxpbk8y14= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=CzuU5doD; arc=none smtp.client-ip=209.85.208.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f171.google.com with SMTP id 38308e7fff4ca-2d26227d508so85530241fa.2; Tue, 12 Mar 2024 08:33:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710257599; x=1710862399; darn=vger.kernel.org; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:from:to:cc:subject :date:message-id:reply-to; bh=j53OhaUdNor3mQ/LpX8s3IrNzFb3Okutcd5V/IJzIh8=; b=CzuU5doDnsWrCtBTxkxGb+T6J8v3EIN5LYPaOjmVWizd+Jz/Ibmf9UnEHyWf710GUR LbWQZc8m4ax6fJOBHZ192/ItA7+Qog4VCFpmfwK3Y3azI4qTRVcfAv+7YyfsEOSh9nrH XkJKguPrePjIxNwr+zjIifUnXr8gnVaYJ5wUaKw3r3R8SRvtRxncolyTuUyl0fEr56ey FBeHgxZ/k6CPBsViFJ9NF72ED7fJdNfvfO1+QOAMagnCRl34KPMsoIuzwl9FB5UW4/LN OZYvvvj1x2j7fTAFcCkBrky0lMnE9+cqL6fdDg0Z/4XGZQyyT2/bINIwJTsQkVN4KD5W xCwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710257599; x=1710862399; h=mime-version:user-agent:content-transfer-encoding:references :in-reply-to:date:cc:to:from:subject:message-id:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=j53OhaUdNor3mQ/LpX8s3IrNzFb3Okutcd5V/IJzIh8=; b=PvP8J+3Krz6+YjNKcsFpf+3rJu4ry3m3wX5hroXGBYiIxOLXZ4FtECxi91LLa3Aj7c nxZeRb0qCT87MdWwXeO8fVt73TkwzUhan/gjE3SqU8mmkWkjAXmorfsySOpuLVNyHKXR AOEG8kCc28dcDnwqGj967jqQdoq4Uxqdd5zgiebicbAEhZHm2dTKt+9yKNqwU71kO24b FTYdRTUhpVxVwR9gPDGjr8s2dfiHwiNZYqaUE8UXKFC7QJstGqno6iVaqPUwApLDquEj Kib1fp7I51MEQc1ZHrrQjMSqJqg3nIqhVVoK4vGuJu+o+zG3NSGigaT5zksIvwUOq9p0 j+uQ== X-Forwarded-Encrypted: i=1; AJvYcCVKY67THNwy4iMl8UtRc61GFIvrRbaK3i39q/Ood2OAEih6qijW113TOyBJepNJJFnHx2W0e20IPL/Fbx/LS2GzCTTxzhbYQkULVMmwowD4TpTi7ZTxJ1aLUP87C87LdF2JGaBSD1hjbQ== X-Gm-Message-State: AOJu0Yx3F9nRFr2+CoWtTO80Zq7ABrm3qT2cCIrKOS2QcsIAmgH3L0mG y58LrYfYmqiutq+62y/mMLzJKds7HJ5YZZpeqIeMUDDo3JkfnuVY X-Received: by 2002:a05:651c:211a:b0:2d4:6815:fc6f with SMTP id a26-20020a05651c211a00b002d46815fc6fmr495703ljq.30.1710257599065; Tue, 12 Mar 2024 08:33:19 -0700 (PDT) Received: from [10.176.235.119] ([137.201.254.41]) by smtp.gmail.com with ESMTPSA id s21-20020a50ab15000000b00568699d4b83sm1384635edc.44.2024.03.12.08.33.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 08:33:18 -0700 (PDT) Message-ID: <4aa7761173875ccfac57b18c9f002c4078358631.camel@gmail.com> Subject: Re: [PATCH v3 2/4] scsi: ufs: Re-use exec_dev_cmd From: Bean Huo To: Avri Altman , "James E . J . Bottomley" , "Martin K . Petersen" Cc: Bart Van Assche , Bean Huo , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Date: Tue, 12 Mar 2024 16:33:17 +0100 In-Reply-To: <20240309081104.5006-3-avri.altman@wdc.com> References: <20240309081104.5006-1-avri.altman@wdc.com> <20240309081104.5006-3-avri.altman@wdc.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4-0ubuntu2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Sat, 2024-03-09 at 10:11 +0200, Avri Altman wrote: > Move out the actual command issue from exec_dev_cmd so it can be used > elsewhere.=C2=A0 While at it, remove a redundant "lrbp->cmd =3D NULL" > assignment. >=20 > Also, the device management commands that are originated from the > ufs-bsg code path, are being traced now, which wasn't the case > before. >=20 > Signed-off-by: Avri Altman Reviewed-by: Bean Huo