Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242876
b: refs/heads/master
c: 7648cdf
h: refs/heads/master
v: v3
  • Loading branch information
Lars Ellenberg authored and Philipp Reisner committed Mar 10, 2011
1 parent 336b13f commit 87dd4cf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5a22db8968a69bec835d1ed9a96ab3381719e0c0
refs/heads/master: 7648cdfe52daf0ca4fa9489879dea9e089b0dfe1
7 changes: 4 additions & 3 deletions trunk/drivers/block/drbd/drbd_bitmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,9 @@ static void bm_async_io_complete(struct bio *bio, int error)
if (!error && !uptodate)
error = -EIO;

if (!bm_test_page_unchanged(b->bm_pages[idx]))
dev_info(DEV, "bitmap page idx %u changed during IO!\n", idx);
if ((ctx->flags & BM_AIO_COPY_PAGES) == 0 &&
!bm_test_page_unchanged(b->bm_pages[idx]))
dev_warn(DEV, "bitmap page idx %u changed during IO!\n", idx);

if (error) {
/* ctx error will hold the completed-last non-zero error code,
Expand Down Expand Up @@ -1135,7 +1136,7 @@ int drbd_bm_write_page(struct drbd_conf *mdev, unsigned int idx) __must_hold(loc
struct bm_aio_ctx ctx = { .flags = BM_AIO_COPY_PAGES, };

if (bm_test_page_unchanged(mdev->bitmap->bm_pages[idx])) {
dev_info(DEV, "skipped bm page write for idx %u\n", idx);
dynamic_dev_dbg(DEV, "skipped bm page write for idx %u\n", idx);
return 0;
}

Expand Down

0 comments on commit 87dd4cf

Please sign in to comment.