Commit 8b43e530 authored by Lars Ellenberg's avatar Lars Ellenberg Committed by Philipp Reisner

add missing warning about bm_is_locked

Signed-off-by: default avatarPhilipp Reisner <philipp.reisner@linbit.com>
Signed-off-by: default avatarLars Ellenberg <lars.ellenberg@linbit.com>
parent b79f96e7
...@@ -1212,6 +1212,8 @@ int drbd_bm_count_bits(struct drbd_conf *mdev, const unsigned long s, const unsi ...@@ -1212,6 +1212,8 @@ int drbd_bm_count_bits(struct drbd_conf *mdev, const unsigned long s, const unsi
ERR_IF(!b->bm_pages) return 1; ERR_IF(!b->bm_pages) return 1;
spin_lock_irqsave(&b->bm_lock, flags); spin_lock_irqsave(&b->bm_lock, flags);
if (bm_is_locked(b))
bm_print_lock_info(mdev);
for (bitnr = s; bitnr <= e; bitnr++) { for (bitnr = s; bitnr <= e; bitnr++) {
w = bitnr >> LN2_BPL; w = bitnr >> LN2_BPL;
if (page_nr != w >> (PAGE_SHIFT - LN2_BPL + 3)) { if (page_nr != w >> (PAGE_SHIFT - LN2_BPL + 3)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment