From patchwork Tue Dec 27 15:55:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ming Lei X-Patchwork-Id: 9489495 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 7D6CA601D2 for ; Tue, 27 Dec 2016 16:07:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 70156201BC for ; Tue, 27 Dec 2016 16:07:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64570223B2; Tue, 27 Dec 2016 16:07:11 +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 20B562094F for ; Tue, 27 Dec 2016 16:07:10 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933018AbcL0QHC (ORCPT ); Tue, 27 Dec 2016 11:07:02 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:34056 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933003AbcL0QGz (ORCPT ); Tue, 27 Dec 2016 11:06:55 -0500 Received: by mail-pf0-f196.google.com with SMTP id y68so18354173pfb.1; Tue, 27 Dec 2016 08:06:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=HeHWpe6xwoRqTp359D3Zh15s/9hW2MKxLPUbX5gPIgw=; b=Syngen9+QIW8ECIZRUHu8oc1bIQ+a10xSgZ4I55QFfSkkqd1Yxbu4FXU1jmNwP4X26 CRjL5jhLIMSEE8JWbpNfrWo++saB+v0xB0NjED2/6K/fgkLOQhoWifsI9nlP249CM+FR j4I1zV4gbPBipRX28DHuIZMb1GrKo+/OpI/+ycfO+At9najYPR47NdjKC0YudECPn5Ud YQ8MNhf9kIFKBXFw7QRX3KKbBAdPUw893OgwR70Tj2TGYk4HNZ/QrgX02hd5dpt51Dcc P0OdhGCXBzralq+HqbpWJWpMHwZPccyHbbdCYAKofzwE5k0jLnHbo9nNzR/L/Y6pKSfA CazA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=HeHWpe6xwoRqTp359D3Zh15s/9hW2MKxLPUbX5gPIgw=; b=HuG9e5eDoftlV2GbuR9mokYTei56ANszIKrGBbG2wTL0lfdKF3otxNHC/PlH4omCDd gM1Ut/tUl2WmS4FkohTkoKbMM4WKt/ZQw9NENII4OGDMKzxzIwLlIDjagSELuvlhHxmi 2GLwP2wNnQ+0vStKS+5+WbgZ1FBBQal0gopZHuhRZxo8tQZlq3nRHcmVvUUPMFXtTYPp JldWwqEo5YWqOWPnWrvnPHYi8QDWEV2GKzJk+4/K6za/LL6kDnIx58dElQYnNQHup6i2 /EJdkpJKaHjTNGZ1GdRKGQcH0WSpxl6jvSy76NCbQqYz5fQ1bo7Oa2nZhYGaPLQJH7Xp TRrQ== X-Gm-Message-State: AIkVDXKTSrTCB7+1eSjZuTsVQIasUyGVNPQKFgb0ZCVBZ7yjUnn6oH8vp7hy1bQ95OBlyA== X-Received: by 10.98.68.84 with SMTP id r81mr29915414pfa.174.1482854326688; Tue, 27 Dec 2016 07:58:46 -0800 (PST) Received: from localhost ([45.35.47.137]) by smtp.gmail.com with ESMTPSA id z29sm64656091pgc.11.2016.12.27.07.58.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 27 Dec 2016 07:58:43 -0800 (PST) From: Ming Lei To: Jens Axboe , linux-kernel@vger.kernel.org Cc: linux-block@vger.kernel.org, Christoph Hellwig , Ming Lei , "Rafael J. Wysocki" , Len Brown , Pavel Machek , linux-pm@vger.kernel.org (open list:SUSPEND TO RAM) Subject: [PATCH v1 03/54] kernel/power/swap.c: comment on direct access to bvec table Date: Tue, 27 Dec 2016 23:55:52 +0800 Message-Id: <1482854250-13481-4-git-send-email-tom.leiming@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1482854250-13481-1-git-send-email-tom.leiming@gmail.com> References: <1482854250-13481-1-git-send-email-tom.leiming@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Ming Lei --- kernel/power/swap.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/power/swap.c b/kernel/power/swap.c index 32e0c232efba..031e709c9fc4 100644 --- a/kernel/power/swap.c +++ b/kernel/power/swap.c @@ -238,6 +238,8 @@ static void hib_init_batch(struct hib_bio_batch *hb) static void hib_end_io(struct bio *bio) { struct hib_bio_batch *hb = bio->bi_private; + + /* single page bio, safe for multipage bvec */ struct page *page = bio->bi_io_vec[0].bv_page; if (bio->bi_error) {