]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mlx4: Fix last allocated object tracking in bitmap allocator
authorRoland Dreier <rolandd@cisco.com>
Tue, 29 May 2007 23:07:09 +0000 (16:07 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 29 May 2007 23:07:09 +0000 (16:07 -0700)
commit8d429d6e86bc74f5eb8671ed2e9031d008f9aec1
tree8bf4e73ab877936da113969c941a51e6aef8d319
parentdefc20a65a583364dc741a6c6f085e6496abe6f5
IB/mlx4: Fix last allocated object tracking in bitmap allocator

Set last allocated object to the object after the one just allocated
before ORing in the extra top bits.  Also handle the case where this
wraps around.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/net/mlx4/alloc.c