Lars Ellenberg 7777a8ba1f drbd: bitmap: don't count unused bits (fix non-terminating resync)
We trusted the on-disk bitmap to have unused bits cleared.
In case that is not true for whatever reason,
and we take a code path where the unused bits don't get cleared
elsewhere (bm_clear_surplus is not called), we may miscount the bits,
and get confused during resync, waiting for bits to get cleared that we
don't even use: the resync process would not terminate.

Fix this by masking out unused bits in __bm_count_bits.

Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: Lars Ellenberg <lars.ellenberg@linbit.com>
2011-03-10 11:36:38 +01:00
..
2011-02-15 15:25:48 -05:00
2011-01-13 08:03:09 -08:00
2011-01-20 21:37:29 +10:30
2011-03-10 08:52:07 +01:00
2011-01-12 04:59:44 -05:00
2011-02-25 15:07:37 -08:00
2011-03-10 08:52:07 +01:00
2011-02-24 11:16:24 -08:00
2011-02-01 16:48:46 +02:00