Skip to content

Commit 08719dd

Browse files
Dongli Zhangaxboe
authored andcommitted
xen/blkfront: fix comment for need_copy
The 'need_copy' is set when rq_data_dir(req) returns WRITE, in order to copy the written data to persistent page. ".need_copy = rq_data_dir(req) && info->feature_persistent," Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Fixes: c004a6f ('block/xen-blkfront: Make it running on 64KB page granularity') Acked-by: Roger Pau Monné <roger.pau@citrix.com> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Link: https://lore.kernel.org/r/20220317220930.5698-1-dongli.zhang@oracle.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 93b4e74 commit 08719dd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/block/xen-blkfront.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ struct setup_rw_req {
576576
struct blkif_request *ring_req;
577577
grant_ref_t gref_head;
578578
unsigned int id;
579-
/* Only used when persistent grant is used and it's a read request */
579+
/* Only used when persistent grant is used and it's a write request */
580580
bool need_copy;
581581
unsigned int bvec_off;
582582
char *bvec_data;

0 commit comments

Comments
 (0)