From mboxrd@z Thu Jan 1 00:00:00 1970 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 1F49D1FC5 for ; Fri, 24 Nov 2023 12:15:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k8eTrReb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1BAE8C433C7; Fri, 24 Nov 2023 12:15:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700828154; bh=xWJDM89s7PEji+2SZq/p+Vm/gSZqz0iXR9i8e95E0SE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=k8eTrReb+GVfr8lTv7ZL31nlMfW3VZ77M7/wAcKveA5oin3ne8kb4VF7oCW+sxGU2 KF0LPPf3s5dG5n4lCaLVcxuaecJEPIUERJKOZb+1OSTA2xGYWEubHkbtwPThKVcy9q cjcKRI5sVDxPlcKuCySoFWl4e8rf3IqLoa7Sm1xmqQ99ZD0VPRyWwBwbc6H+ilAXWH vaDlqG9PFmt4gJRMw22EVT7pj2pYahuxR03B3LQOFN/4kz4IxHX51aewxUbGLMOjmM qPgcJ4NRHmq9B1yr5IQFnQpCtosEzdmOXXykZ9Zg81cb3hRjx0kvKrxsVt/rrxIqLt zr+XkZDwIroiw== Date: Fri, 24 Nov 2023 17:45:50 +0530 From: Vinod Koul To: Yury Norov Cc: linux-kernel@vger.kernel.org, Fenghua Yu , Dave Jiang , dmaengine@vger.kernel.org, Jan Kara , Mirsad Todorovac , Matthew Wilcox , Rasmus Villemoes , Andy Shevchenko , Maxim Kuvyrkov , Alexey Klimov Subject: Re: [PATCH 09/34] dmaengine: idxd: optimize perfmon_assign_event() Message-ID: References: <20231118155105.25678-1-yury.norov@gmail.com> <20231118155105.25678-10-yury.norov@gmail.com> Precedence: bulk X-Mailing-List: dmaengine@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: <20231118155105.25678-10-yury.norov@gmail.com> On 18-11-23, 07:50, Yury Norov wrote: > The function searches used_mask for a set bit in a for-loop bit by bit. > We can do it faster by using atomic find_and_set_bit(). Acked-by: Vinod Koul -- ~Vinod