aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2014-12-09 16:58:11 +0100
committerJens Axboe <[email protected]>2014-12-09 09:07:14 -0700
commit9e98e9d7cf6e9d2ec1cce45e8d5ccaf3f9b386f3 (patch)
tree9bf1d9e63d5f19088be8a6bfe8e141f6ab887bb4 /lib/mpi/mpiutil.c
parent45a9c9d909b24c6ad0e28a7946e7486e73010319 (diff)
blk-mq: Avoid that __bt_get_word() wraps multiple times
If __bt_get_word() is called with last_tag != 0, if the first find_next_zero_bit() fails, if after wrap-around the test_and_set_bit() call fails and find_next_zero_bit() succeeds, if the next test_and_set_bit() call fails and subsequently find_next_zero_bit() does not find a zero bit, then another wrap-around will occur. Avoid this by introducing an additional local variable. Signed-off-by: Bart Van Assche <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Robert Elliott <[email protected]> Cc: Ming Lei <[email protected]> Cc: Alexander Gordeev <[email protected]> Cc: <[email protected]> # v3.13+ Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions