[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20100828.153727.115919618.davem@davemloft.net>
Date: Sat, 28 Aug 2010 15:37:27 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: akinobu.mita@...il.com
Cc: netdev@...r.kernel.org, rolandd@...co.com
Subject: Re: [PATCH v2] mlx4: use bitmap library
From: Akinobu Mita <akinobu.mita@...il.com>
Date: Sat, 28 Aug 2010 14:08:13 +0900
> Replace loops calling set_bit() and clear_bit() with bitmap_set() and
> bitmap_clear().
>
> Unlike loops calling set_bit() and clear_bit(), bitmap_set() and
> bitmap_clear() are not atomic. But this is ok.
> Because the bitmap operations are protected by bitmap->lock
> except for initialization of the bitmap in mlx4_bitmap_init().
>
> Signed-off-by: Akinobu Mita <akinobu.mita@...il.com>
> Cc: Roland Dreier <rolandd@...co.com>
> Cc: netdev@...r.kernel.org
> Cc: "David S. Miller" <davem@...emloft.net>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists