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


Groups > linux.kernel > #1674667

[PATCH v2 03/51] kernel/power/swap.c: comment on direct access to bvec table

From Ming Lei <ming.lei@redhat.com>
Newsgroups linux.kernel
Subject [PATCH v2 03/51] kernel/power/swap.c: comment on direct access to bvec table
Date 2017-06-26 14:20 +0200
Message-ID <tWB9M-2fr-25@gated-at.bofh.it> (permalink)
References <tWB9L-2fr-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net>
Cc: linux-pm@vger.kernel.org
Signed-off-by: Ming Lei <ming.lei@redhat.com>
---
 kernel/power/swap.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/kernel/power/swap.c b/kernel/power/swap.c
index 57d22571f306..aa52ccc03fcc 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_status) {
-- 
2.9.4

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

[PATCH v2 03/51] kernel/power/swap.c: comment on direct access to bvec table Ming Lei <ming.lei@redhat.com> - 2017-06-26 14:20 +0200

csiph-web