lkml.org 
[lkml]   [2016]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 16/60] block: pktcdvd: comment on direct access to bvec table
Date
Signed-off-by: Ming Lei <tom.leiming@gmail.com>
---
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);
--
2.7.4
\
 
 \ /
  Last update: 2016-10-29 10:29    [W:0.052 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site