Received: by 2002:ab2:788f:0:b0:1ee:8f2e:70ae with SMTP id b15csp169539lqi; Wed, 6 Mar 2024 13:21:34 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWpkMk8Mlv9RFKsADjl13Gctiij+/qVNCGe90Gz4KGiLHPFc5EdHQhMvyFb7AWHUnv1PUGV77iNksN0TgJqJ0t/Yxk5qZTpo3gV/o0L6Q== X-Google-Smtp-Source: AGHT+IH8LrnEcYkxuK9ls0VDnpk/kp1X+W9EXyorn9yMuvxV1brnvnzI6FJQuxVzUHWzrsh/UPF8 X-Received: by 2002:a05:6358:52d2:b0:17c:2ce0:f55 with SMTP id z18-20020a05635852d200b0017c2ce00f55mr5023576rwz.19.1709760093701; Wed, 06 Mar 2024 13:21:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709760093; cv=pass; d=google.com; s=arc-20160816; b=sU1/Nq7fmNfTgl/49hrbKaXYaxLZ6U28BxBW5ux/qRxC9wJ55V+iOaBj2RPUzwOAac 32E4iVAqJqKlDYoeHew2EBEWjCJRuXK/q3EXQzGAXiEQZKsdLvF7Vg1aHKUIKrw1ydtz RllyXLM3M3CT6rfXj9u2GHudA9pheFB4A0viVIW7Gm0DFzpey4EwcSDnYmT2M4slHC+y ova1+p9BkHV4Q33rJPw7eduyUAj94eIxtZ6Vsa5o40LITdt3QJbFWpDZHfjikhtaLMrs LKVO39c0YYb3QKBRQCjOGGU3prXy7bCCxk4l1Oqe4FuBn1V9s8xOq/rZPOR69CCaxOC2 xv2Q== 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=e16KdKW/x24Z+zVeyh7H5Yb11YBnCMdLflcI/9rje7w=; fh=oYqEB62Mxk9p1wizrGpDpp1+x3esENHpMqQgzofiXD8=; b=ySrBTgxhu668GL0QBGhJvVKY+xs+b9T95osUKCM1acFsMxZjudzcjwydI/87+U0YFf O5EGEjbaSnTS0lZavWnXiNXkC8P735c4ZYxAEEMcqxM+Z+C7HwLN1jklUwMPdO2OCYVo Ni71TBCScU0lkKnNBTza6DaLluDMarE42w1YD8Hz9U67CzCfcmZ8FYZbrQXJwTvcPns1 xeMXlAyagtVkOkNMIHuuhjS/uEAUeRWrSJdAcunvbzoPJWRpasF3E6vGTyDAYukJzs9l VKLa1szEYjyxV7R6DkrksfQeFPLgQbM3M5TsZVSB8X5nVYsibbRgoTFKbOQY0vNLypEl bnHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LiDbFp4U; 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-94595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94595-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id wk9-20020a05620a578900b0078828ef15ecsi7579031qkn.599.2024.03.06.13.21.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 13:21:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-94595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=LiDbFp4U; 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-94595-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-94595-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 63AFD1C2148B for ; Wed, 6 Mar 2024 21:21:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id CECA01B286; Wed, 6 Mar 2024 21:21:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="LiDbFp4U" Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 633791758D; Wed, 6 Mar 2024 21:21:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709760083; cv=none; b=lJReLbHFKrniIaRlar2vG+9V1J3pJ9ZX76bourC1sfk0OG0H7FonLytmHFQPigUKWMl94BLkaMV2z2g59E23QBtRd7QKu8m/b4vH0HoCUVRCtJ0xrFMPn9kYyLiUB490eWiVA4E4F30dlkCeAPsHbULx7eoP4/6Gyaaizv0DxCQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709760083; c=relaxed/simple; bh=e16KdKW/x24Z+zVeyh7H5Yb11YBnCMdLflcI/9rje7w=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=YqhAKsYu2luSs2Kj5AvWiz4MRfDSx6xp8z07H+vyS8JnUQk95jTJWZXhp8qPwZSndA06P+rp8VHFfHDPaps0gyc9jrDfSUrmCfApKCxOL17xi6DCAcDqImtqASaRM8aTjAA+HHwOQOC/hmS2C1GuAJ8NhYPh6SmcIP9UKKU3HD0= 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=LiDbFp4U; arc=none smtp.client-ip=209.85.218.45 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-ej1-f45.google.com with SMTP id a640c23a62f3a-a4499ef8b5aso25997766b.0; Wed, 06 Mar 2024 13:21:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709760080; x=1710364880; 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=e16KdKW/x24Z+zVeyh7H5Yb11YBnCMdLflcI/9rje7w=; b=LiDbFp4U6Rvn7IhZNAaEiMKSnjY9HPj7PotQgsysThVNC5dZdk4uNwXyq7zu5zdcaj esoCY4Ip2mfE1mFdG+l4uAZ3aLLQ5rz8LCYYGLpNV3xUsZ6wwpqTXwbo79AXUVyFsuZt GM5UFGUM025Dr6xc5fmdY4gjdKChYXIcPacOzhW2KfZ6o7qJIK44qZHEkzCEu6c2tFb1 1CPCOuYfQA+Uul0LmWstf2hMMv4byAfNunbnKBQIr3g8NUZXJ8zw1SHRCcuSSQ37F8pS jG3Gh2ok52RQ/Hd6JPt4T/w2/SwtuirEo+pue0Vxlbv9KxIwFauJUhO0ncdSffLhIjWX kbGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709760080; x=1710364880; 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=e16KdKW/x24Z+zVeyh7H5Yb11YBnCMdLflcI/9rje7w=; b=nWO8f3n0+Gc23TjfHMqXm8Tvg/NKfVAF+9+t8azKOiLStSE/IxcB/3Mggn3PnhYWip 1X3f0tpTNB/6kmrJXfbjDoJXfR+ntNXyJ26NWTsfRC5oAKKbs+aGAkWWupUjkJZ3pvsn /evgdAozd5YZkFExKH/T2EMN4AYiHOB5zg0l6koEsXIsBme8c+WD+X7brQVEJthIB/LS x0hJNw0Up75Dkk0dcF2DHCnb4Vr2jimDfFSxQbjWy3Cd1R64wDmzsvSNPeWLHaqRUzyn NoI6r+8H5gNuvoFPwgnBQhLmhUozJX+VWEZVBWGg+gU9Mffy+FOsKTYp+j2OxniupnNV F20Q== X-Forwarded-Encrypted: i=1; AJvYcCXZiFaARP4+LhS3313qlQv/tR3SgYaqTCklq+xgFAEgiF62GcTtIPS7uGjw6GdmjsH5eM3Lulh3ZNcqLOm2z1vOy65YgR8QXcfyVWzkHmuxLZxOcLKdYNrMRdAGmbOAzGZ7HmSfR0GwMQ== X-Gm-Message-State: AOJu0YzBcbC0l+4eiKu0a3I1i632my20LnZVPOdEnL0OiRmmqvAMUwCw VvZEVaLPRdespq20zz17l4YE/6dGTdzIy1px8o43X2PgMEgW4QO8 X-Received: by 2002:a17:906:19cf:b0:a43:ab98:d376 with SMTP id h15-20020a17090619cf00b00a43ab98d376mr11920510ejd.15.1709760079545; Wed, 06 Mar 2024 13:21:19 -0800 (PST) Received: from p200300c58728635f85ed642449045909.dip0.t-ipconnect.de (p200300c58728635f85ed642449045909.dip0.t-ipconnect.de. [2003:c5:8728:635f:85ed:6424:4904:5909]) by smtp.gmail.com with ESMTPSA id gc9-20020a170906c8c900b00a4498726bb9sm6393814ejb.173.2024.03.06.13.21.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Mar 2024 13:21:19 -0800 (PST) Message-ID: <9d73b3252a74c0a0c1f7ca269cd91c553ef4f52b.camel@gmail.com> Subject: Re: [PATCH v2 1/4] scsi: ufs: Re-use device management locking code 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: Wed, 06 Mar 2024 22:21:18 +0100 In-Reply-To: <20240305210051.10847-2-avri.altman@wdc.com> References: <20240305210051.10847-1-avri.altman@wdc.com> <20240305210051.10847-2-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 Tue, 2024-03-05 at 23:00 +0200, Avri Altman wrote: > Group those 3 calls that repeat for every device management command > into > a lock and unlock handlers. >=20 > Reviewed-by: Bart Van Assche > Signed-off-by: Avri Altman Reviewed-by: Bean Huo