From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932663AbdJJSPh (ORCPT ); Tue, 10 Oct 2017 14:15:37 -0400 Received: from mail-pf0-f180.google.com ([209.85.192.180]:49218 "EHLO mail-pf0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932613AbdJJSPb (ORCPT ); Tue, 10 Oct 2017 14:15:31 -0400 X-Google-Smtp-Source: AOwi7QDS5bl5SAZ0VBxxQihFNbZYdLRpBi5GUeESJP5ho4qefAYiZ850gtHhcodNWiABXDK1W7rHZg== Date: Tue, 10 Oct 2017 11:15:29 -0700 From: Omar Sandoval To: Ming Lei Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Mike Snitzer , dm-devel@redhat.com, Bart Van Assche , Laurence Oberman , Paolo Valente , Oleksandr Natalenko , Tom Nguyen , linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Omar Sandoval Subject: Re: [PATCH V6 3/5] sbitmap: introduce __sbitmap_for_each_set() Message-ID: <20171010181529.GC30738@vader.DHCP.thefacebook.com> References: <20171009112424.30524-1-ming.lei@redhat.com> <20171009112424.30524-4-ming.lei@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171009112424.30524-4-ming.lei@redhat.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 09, 2017 at 07:24:22PM +0800, Ming Lei wrote: > We need to iterate ctx starting from any ctx in round robin > way, so introduce this helper. > > Cc: Omar Sandoval Reviewed-by: Omar Sandoval > Signed-off-by: Ming Lei > --- > include/linux/sbitmap.h | 64 ++++++++++++++++++++++++++++++++++++------------- > 1 file changed, 47 insertions(+), 17 deletions(-)