From patchwork Sat Oct 29 08:08:15 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9403421 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 D37C960587 for ; Sat, 29 Oct 2016 08:29:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BF64E2A68A for ; Sat, 29 Oct 2016 08:29:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B27592A68F; Sat, 29 Oct 2016 08:29:48 +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 5BDF02A672 for ; Sat, 29 Oct 2016 08:29:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756964AbcJ2INx (ORCPT ); Sat, 29 Oct 2016 04:13:53 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:34367 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941434AbcJ2INM (ORCPT ); Sat, 29 Oct 2016 04:13:12 -0400 Received: by mail-pf0-f193.google.com with SMTP id u84so3376424pfj.1; Sat, 29 Oct 2016 01:13:06 -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=eZt4njlMrnV+4eK4zfo+k46igtn8rTAyP+fJNF5TJ5A=; b=YqMiTeFiVoFMQMqB7B0CPJrkrpbhVbGhysQ9PhGK53ACi2EhZLfkQ8RFthR0y+NIXL b5SMklbeC3BGbjOzZV8A+37b/Paw9+hSVa2hQNPClxQnPCblIC+3v2434NttKVJjGB3G uO5+6aqiEL+JHVYtRtLBzYjOL/fKlG/5ohD3L3GjQTivvFdHVzNfoTUdXw7F9ekGUbvL znHSlmZ3YaX2S7CbEgXeWxFiWLrvNgkRzmUHEnYxER1bZe4XLOiCWsVdYdVVbHsJEsu0 fTBNU/TA0x7iiR5qbfl6JzTi9WbvRuxpGPX37FFUjlUD04Aazy7Vp3Ppj8SE5MmsNBGh Gsjg== 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=eZt4njlMrnV+4eK4zfo+k46igtn8rTAyP+fJNF5TJ5A=; b=O0Onrb5oVzcAmXax9mLcizmQcczWIWEWp79ZCu4305Xuuzxqu9MzPUb5q9suHHO6km XwgHKIE3lAB/S+cbOVWZkMyS2OahgtChR2j9pz1f/WGi0JkQ9LqieqF9IkJeyYtF2c0v zWhyXrnDxiUH3ixOABOdxt46OmhRa65850wVMAPe84/m3OIrWvriiKwC4PJJyMPqrm3g /RxnD6PONBq3j8a5ZfWx71O2GAlPCOvNzwkqj2kl6PmifIj+Hhkc53/j+C4oBtaMI4X4 IxNO6t/lrjbqGr1hOl+53d5h/Kj1R/HRHlVler5LnjVMSE7Lcu+OFl8R8bXs0ujoQNsp 46NQ== X-Gm-Message-State: ABUngve4gd2QQF3iGWwJzCXaS7e5TsogIH6jCYH7X2JQbCMdak4yjJ3E3g03fO5mjValcA== X-Received: by 10.99.149.72 with SMTP id t8mr26455465pgn.29.1477728786416; Sat, 29 Oct 2016 01:13:06 -0700 (PDT) Received: from localhost ([45.34.23.101]) by smtp.gmail.com with ESMTPSA id ht5sm23560804pad.16.2016.10.29.01.13.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 29 Oct 2016 01:13:05 -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 , Jiri Kosina Subject: [PATCH 16/60] block: pktcdvd: comment on direct access to bvec table Date: Sat, 29 Oct 2016 16:08:15 +0800 Message-Id: <1477728600-12938-17-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/pktcdvd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 90fa4ac149db..817d2cc17d01 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -1298,6 +1298,11 @@ static int pkt_handle_queue(struct pktcdvd_device *pd) static void pkt_start_write(struct pktcdvd_device *pd, struct packet_data *pkt) { int f; + + /* + * Need to fix this usage for supporting multipage bvecs, + * because the table can be changed in pkt_make_local_copy(). + */ struct bio_vec *bvec = pkt->w_bio->bi_io_vec; bio_reset(pkt->w_bio);