Received: by 2002:ab2:710b:0:b0:1ef:a325:1205 with SMTP id z11csp1150930lql; Tue, 12 Mar 2024 08:37:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXq64mkY4xDqokquwN0bNA5Evv+l2XpNYn6v78XD2jt7bAmUax+971h4xJkBKZCMxm7WaFKGR/2jt6mLRxq2f9SmFh+BzLkr288+7Ck4A== X-Google-Smtp-Source: AGHT+IFw6W7uZuFKffqKji1usKwn+DOIYRdVrher3h1xHgfN+3DDqSlbc+sxA4e1t37maaAOcQlM X-Received: by 2002:a05:622a:9:b0:42f:2056:dd1e with SMTP id x9-20020a05622a000900b0042f2056dd1emr10751850qtw.38.1710257876134; Tue, 12 Mar 2024 08:37:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710257876; cv=pass; d=google.com; s=arc-20160816; b=SwD1RS2V/1C/0zjetrnSkVB7MoQ/NQtAz7azJuAlNzYl7UzZRecyI9w/DGZ7XOiXn2 W11MN4HAK7fr7vKeb+sRAO68S7SxVmMh+z48ooBpAIQ2pOKchNSJikOoZS6mIev/JDLx ii2qAnUPuTAMF21w/KkeOXXnrSXlN3s9neehckj1Rr5nQFc23DPbqhlKz4rWeHY81DCI VSCNc2JCjvC/CrGSD0EO7uYtlti1Dfh6N5ZIcQMIGggbsmdiqkxKOSOKFclxM3XCN8ei AvlcFnfWBdwMrB9s8iAbsiB16pD75dRhtdl5dyH53Dyx9EtG5+7YkrO3M0dAG194H25K 9taA== 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=e9IFMJLmz7ssBF6+oyS4v+bZM+zYaoAVQVQIz9HmvxI=; fh=qi4kBeskBymI5w6NsMzc1dDuT1ws3vjEt5D3JlipxIk=; b=qqj8IFq7yRo+X5ZJgkIIrdu3sopJC/5DupOLFIQoR7XMhRrpczsjzNRzr+Ordh6fzs HNe1y2YqDtSgWnNCQsuBi0seqK7BhMOz/JYTWGJKWX2S6sT74gP4cc+Z1GiFAKwZbwXA aZc6lVghaovCA1SsdCmpEEGu8fXB8Tcln1gqvVGiXQhea2co0jxMnlt5c4zu7du6drUI crIZIpmg3intz9isCXA2KNIpJOIIjGfNRarAW257f6s57rLK1TS1VG8nZJ5tDjv7cZpl 0bIxUk6jaHeQWTmGsUSkunyZv2i0WypnpPq0CWElEP07DXAwP+1Zdiu1SmG5sHreCKyH bDwg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=kNcucUym; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o10-20020a05622a044a00b0042ee05e2a2fsi8027502qtx.480.2024.03.12.08.37.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Mar 2024 08:37:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-100453-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=@kernel.org header.s=k20201202 header.b=kNcucUym; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-100453-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-100453-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D62171C218E7 for ; Tue, 12 Mar 2024 15:37:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6AF7B7CF0C; Tue, 12 Mar 2024 15:37:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="kNcucUym" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 8714A1E534; Tue, 12 Mar 2024 15:37:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710257869; cv=none; b=u379j4GGoFHWb/FNQJGjeLUepgHYpI3PlgraglhcWAjFsbNFukMZMyrb8YL6gOX8GngDJU6dUUzumx8qPKWvfBqBVZyo0u0/9QX2uNNVieg+5wPmvaQtfG4Ija1sJhdrYm2fehVcxd0v9oaXQKnKrd3Npmjoo8l3xsvnhHeraLg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710257869; c=relaxed/simple; bh=a1HUuTjqXPjdMAODl61yMmgB6v/nDK8Z43bW0h5mYQw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=bUI9ls4g3LJDPv8v6EiJ0Iseu/W4AUv27bxz3Zfj2FvD+6rDnuG1cmT4W0vZ5ounZSM771NT+qQS6ZZArlD6rwXhjcDGUdCh6sZHLE0x+nS/ZUnN54vOmUIzRwwzEp6j0ml4WsCGctWvB9nKD2qJgYgMOfHcomVesK/bwyE+xl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=kNcucUym; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3A15C433C7; Tue, 12 Mar 2024 15:37:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1710257869; bh=a1HUuTjqXPjdMAODl61yMmgB6v/nDK8Z43bW0h5mYQw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=kNcucUymh43PmouWxMJDNZU9OYI1fqD413lILPRCs/jiUxGX7/2IABS7O7aGHJQ3b 0txvh53c7QGo/I7YNQvsyI2tMVUNFGRclMJFUUhVWLtuB4Jr9l2nAsbxogq14q/rRH l8PHWNIgHrnuhYwJsMhG28B5fp6aKhi613a+9Woeqt7z1hyn1J7dVaEOIhZdxQPWdT drrWTinBC5ctHwL1e3of0TqORKafkuUNzYhhKQocsoKxdvYwMYEuRR5heOZEH9Eild vfBJZ04IbpRJpDUc/DnTE9AWmMp/8ixHSqa/I0hl51Njz0g76Ic3oNtR53qmwJOdlG K4iwM39T5mTgw== Date: Tue, 12 Mar 2024 16:37:42 +0100 From: Niklas Cassel To: Igor Pylypiv Cc: Damien Le Moal , John Garry , Jason Yan , "James E.J. Bottomley" , "Martin K. Petersen" , Jack Wang , Hannes Reinecke , Xiang Chen , Artur Paszkiewicz , Bart Van Assche , TJ Adams , linux-ide@vger.kernel.org, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v8 1/7] ata: libata-sata: Factor out NCQ Priority configuration helpers Message-ID: References: <20240307214418.3812290-1-ipylypiv@google.com> <20240307214418.3812290-2-ipylypiv@google.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: <20240307214418.3812290-2-ipylypiv@google.com> On Thu, Mar 07, 2024 at 01:44:12PM -0800, Igor Pylypiv wrote: > Export libata NCQ Priority configuration helpers to be reused > for libsas managed SATA devices. > > Switched locking from spin_lock_irq() to spin_lock_irqsave(). > In the future someone might call these helper functions when interrupts > are disabled. spin_unlock_irq() could lead to a premature re-enabling > of interrupts, whereas spin_unlock_irqrestore() restores the interrupt > state to its condition prior to the spin_lock_irqsave() call. > > Acked-by: Damien Le Moal > Reviewed-by: Jason Yan > Reviewed-by: Hannes Reinecke > Signed-off-by: Igor Pylypiv > --- Reviewed-by: Niklas Cassel