aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorOmar Sandoval <[email protected]>2016-09-17 12:20:54 -0700
committerJens Axboe <[email protected]>2016-09-17 13:39:06 -0600
commit5c64a8df0ca88c79c9cb74674c2481e5f7ede511 (patch)
treea10aa8ab518921ee8f16511076a15ff2b64e52ec /lib/mpi/mpiutil.c
parent05fd095d53b979878f016c3a7080d3683cc89d72 (diff)
sbitmap: don't update the allocation hint on clear after resize
If we have a bunch of high-numbered bits allocated and then we resize the struct sbitmap_queue, when those bits get cleared, we'll update the hint and then have to re-randomize it repeatedly. Avoid that by checking that the cleared bit is still a valid hint. No measurable performance difference in the common case. Signed-off-by: Omar Sandoval <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions