From patchwork Sat Oct 29 08:08:13 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403147 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 41CB460588 for ; Sat, 29 Oct 2016 08:13:58 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3021E2A5EA for ; Sat, 29 Oct 2016 08:13:58 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 24FFB2A5EC; Sat, 29 Oct 2016 08:13:58 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id CB3372A615 for ; Sat, 29 Oct 2016 08:13:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934218AbcJ2IND (ORCPT ); Sat, 29 Oct 2016 04:13:03 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:34315 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933122AbcJ2IM5 (ORCPT ); Sat, 29 Oct 2016 04:12:57 -0400 Received: by mail-pf0-f195.google.com with SMTP id u84so3375960pfj.1; Sat, 29 Oct 2016 01:12:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KJ0Bw+7B7HZQj1QIQgX8oaBMvTrKgqWgO/QWFnma8M8=; b=zY9TNpVMA8veUWC9bMlTmK7KOMLvSuDM+qRvV/Y6D79aBIP3xBy/+QjSGDL++bc1Sd 0j6/KYiuN/NByV+QCaMXNz3StdRjjGbm8HEup5qj29rwomJK2TTWmsikIK10VLrtbizx ug8+0S0voWOU9CW6tJn+BveYeULxjbkuJqNF5sPiQORn/M67jwKme4SQka0QOGrq2gKz k9bKsvWNMzmHWpD69hKnZ5L6Jvddk9ECa4KpI7Yo44i1LaRUseTiaxdE31KtoMODGfzI Ny82QDHbg/JLqL7RehDxEAbG9mJ6mem1/Pc3RV+3+dq/XkqDKM6Lzs4NPuWO7PXJHVge yX8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=KJ0Bw+7B7HZQj1QIQgX8oaBMvTrKgqWgO/QWFnma8M8=; b=SbjWkdtsmUy0ws1iv6RAV/Hv6qQ0OrKz8gbbo9L7Fy8p3xXPgtWQvDJSNXDFBZQe2E mi/W84yQr8OzK357CtAAINpxvuz4v+PcOBn56biFJhCtLTSGrmWiCBAzbl1nkgi2r0YV Td7KdQZl8xgCSDGfKeSHCAooC1mO1x11Um7me1Bz3qoqJCQ3IR+l0MiSEUM6GNZ6zpyY spZu9a7wvcBXV0Bn0D1meRnC9f70TgNQDsNQwgk0a3+8XBBVByxKjlBHUarE2SJXsPOV dBNy6wKRxU+/A4rUKlmNfgeH8wD8+zIVVG9GUNtL8sbtKt2k/tFWl7R59Rt9BB+zG87w /uYw== X-Gm-Message-State: ABUngvfsUzwJk2v4BBIYZt1LiZrKKJp/by+NixO7CkZYmVqdvw/QE6PpTHUBgNq9Xv2x3w== X-Received: by 10.99.101.65 with SMTP id z62mr26027337pgb.89.1477728777143; Sat, 29 Oct 2016 01:12:57 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id t5sm23479255pfb.58.2016.10.29.01.12.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:12:56 -0700 (PDT) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, Christoph Hellwig , "Kirill A . Shutemov" , Ming Lei , Philipp Reisner , Lars Ellenberg , drbd-dev@lists.linbit.com (open list:DRBD DRIVER) Subject: [PATCH 14/60] block: drbd: comment on direct access bvec table Date: Sat, 29 Oct 2016 16:08:13 +0800 Message-Id: <1477728600-12938-15-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> References: <1477728600-12938-1-git-send-email-tom.leiming@gmail.com> Sender: linux-fsdevel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- 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 &&