[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1477728600-12938-15-git-send-email-tom.leiming@gmail.com>
Date: Sat, 29 Oct 2016 16:08:13 +0800
From: Ming Lei <tom.leiming@...il.com>
To: Jens Axboe <axboe@...com>, linux-kernel@...r.kernel.org
Cc: linux-block@...r.kernel.org, linux-fsdevel@...r.kernel.org,
Christoph Hellwig <hch@...radead.org>,
"Kirill A . Shutemov" <kirill.shutemov@...ux.intel.com>,
Ming Lei <tom.leiming@...il.com>,
Philipp Reisner <philipp.reisner@...bit.com>,
Lars Ellenberg <lars.ellenberg@...bit.com>,
drbd-dev@...ts.linbit.com (open list:DRBD DRIVER)
Subject: [PATCH 14/60] block: drbd: comment on direct access bvec table
Signed-off-by: Ming Lei <tom.leiming@...il.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 ab62b81c2ca7..ce9506da30ad 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.7.4
Powered by blists - more mailing lists