Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1674678 > unrolled thread

[PATCH v2 01/51] block: drbd: comment on direct access bvec table

Started byMing Lei <ming.lei@redhat.com>
First post2017-06-26 14:20 +0200
Last post2017-06-26 14:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 01/51] block: drbd: comment on direct access bvec table Ming Lei <ming.lei@redhat.com> - 2017-06-26 14:20 +0200

#1674678 — [PATCH v2 01/51] block: drbd: comment on direct access bvec table

FromMing Lei <ming.lei@redhat.com>
Date2017-06-26 14:20 +0200
Subject[PATCH v2 01/51] block: drbd: comment on direct access bvec table
Message-ID<tWB9N-2fr-49@gated-at.bofh.it>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
 drivers/block/drbd/drbd_bitmap.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/block/drbd/drbd_bitmap.c b/drivers/block/drbd/drbd_bitmap.c
index 809fd245c3dc..70890d950dc9 100644
--- a/drivers/block/drbd/drbd_bitmap.c
+++ b/drivers/block/drbd/drbd_bitmap.c
@@ -953,6 +953,7 @@ static void drbd_bm_endio(struct bio *bio)
 	struct drbd_bm_aio_ctx *ctx = bio->bi_private;
 	struct drbd_device *device = ctx->device;
 	struct drbd_bitmap *b = device->bitmap;
+	/* single page bio, safe for multipage bvec */
 	unsigned int idx = bm_page_to_idx(bio->bi_io_vec[0].bv_page);
 
 	if ((ctx->flags & BM_AIO_COPY_PAGES) == 0 &&
-- 
2.9.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web