Thread (2 messages) 2 messages, 2 authors, 2010-08-28

Re: [PATCH v2] mlx4: use bitmap library

From: David Miller <davem@davemloft.net>
Date: 2010-08-28 22:37:11

From: Akinobu Mita <akinobu.mita@gmail.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@gmail.com>
Cc: Roland Dreier <redacted>
Cc: netdev@vger.kernel.org
Cc: "David S. Miller" <davem@davemloft.net>
Applied.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help