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


Groups > linux.kernel > #1511598 > unrolled thread

[PATCH 25/60] block: pktcdvd: set NO_MP for pktcdvd request queue

Started byMing Lei <tom.leiming@gmail.com>
First post2016-10-29 10:40 +0200
Last post2016-10-29 10:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 25/60] block: pktcdvd: set NO_MP for pktcdvd request queue Ming Lei <tom.leiming@gmail.com> - 2016-10-29 10:40 +0200

#1511598 — [PATCH 25/60] block: pktcdvd: set NO_MP for pktcdvd request queue

FromMing Lei <tom.leiming@gmail.com>
Date2016-10-29 10:40 +0200
Subject[PATCH 25/60] block: pktcdvd: set NO_MP for pktcdvd request queue
Message-ID<sxxlf-3Nw-11@gated-at.bofh.it>
At least pkt_start_write() operates on the bvec table directly,
it isn't ready to enable multipage bvec yet, so mark the
flag now.

Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
 drivers/block/pktcdvd.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c
index 817d2cc17d01..403c93b46ea3 100644
--- a/drivers/block/pktcdvd.c
+++ b/drivers/block/pktcdvd.c
@@ -2518,6 +2518,9 @@ static void pkt_init_queue(struct pktcdvd_device *pd)
 	blk_queue_logical_block_size(q, CD_FRAMESIZE);
 	blk_queue_max_hw_sectors(q, PACKET_MAX_SECTORS);
 	q->queuedata = pd;
+
+	/* not ready for multipage bvec yet */
+	set_bit(QUEUE_FLAG_NO_MP, &q->queue_flags);
 }
 
 static int pkt_seq_show(struct seq_file *m, void *p)
-- 
2.7.4

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web