[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 1/1] xen/blkfront: fix comment for need_copy
- To: linux-block@xxxxxxxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
- Date: Thu, 17 Mar 2022 15:09:30 -0700
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/kTBvFUOeAsOHDBzP37bM/e4lhHJsjB6uZfOI/ZMR8E=; b=UpczpwZh6hcEl9MJ7sSL61J2hHBDXj3LPNwtvYEP8ZLOKl715Ykqz5i15GroFSakIFqLUlOZH2MuArMEQm17i8Qe/PTXwDRuxVLIw8w7CYiZaxCoOGWiBJut/ggrajA/bidDuSbTpuZIdULCf+K9Fsstk3rBxXniF1QaQcZHHXmuDvCuL02pDcF2/3DOJwRemUplX55lBJYnM6FD8YcUzz8Ph1Va8dZ/78oYnbqd4u+aE0LGnOLD5+YgY9UqCNahvDo+QNU/SKqtsvPMPTP9EHbVfGOPUqgNvj1LDuzYgAb2DKwOtbNep2IIgeAdDExP+fcUZsjMLdioipIyPOxgTg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LtTgdZhSuhcFwVr03mssj1YEQh9C5BvT1iSxoV4ko1qPG0AoCPE099N0/uBU9O5ZOzggjI6Iv2l+Q0RiZxrOEMfyePovjn7qj/dgep2xYTuOdPFZBsO0CsxguCD+2lNrYCkHmnnWK3q03gfyColjR0qECM59MpN7HxWRxRK7eI/1FsM9kv/ltUNjONAFcSHsvxkhLgl1dPovKvFn692hv/WACR8WE5ihWIGHxW0IbtECxXjf8ARYc3uHBvul/l3IVJz+ieHhwqZMPSXF6fiXBwirzlaUlwzvlVr4Jt2nkmFV+k5kGFfH2175ugnFkrJcJVq0ps2vfoj5973I6LfG8w==
- Cc: boris.ostrovsky@xxxxxxxxxx, jgross@xxxxxxxx, sstabellini@xxxxxxxxxx, roger.pau@xxxxxxxxxx, axboe@xxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx
- Delivery-date: Thu, 17 Mar 2022 22:10:05 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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@xxxxxxxxxx>
---
drivers/block/xen-blkfront.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c
index 03b5fb341e58..dbc32d0a4b1a 100644
--- a/drivers/block/xen-blkfront.c
+++ b/drivers/block/xen-blkfront.c
@@ -576,7 +576,7 @@ struct setup_rw_req {
struct blkif_request *ring_req;
grant_ref_t gref_head;
unsigned int id;
- /* Only used when persistent grant is used and it's a read request */
+ /* Only used when persistent grant is used and it's a write request */
bool need_copy;
unsigned int bvec_off;
char *bvec_data;
--
2.17.1
|