[Devel] [PATCH vz9 v2 1/3] fs/fuse: kio: WRITE_HOLE/ZERO should not be chunked

Konstantin Khorenko khorenko at virtuozzo.com
Fri Oct 25 19:30:50 MSK 2024


From: Alexey Kuznetsov <kuznet at virtuozzo.com>

No actual impact on performance as all the chunks are sent
in parallel, yet it is huge resource overconsumption.

Affects: #VSTOR-94452
https://virtuozzo.atlassian.net/browse/VSTOR-94452

Signed-off-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
Feature: vStorage
---
 fs/fuse/kio/pcs/pcs_map.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/fuse/kio/pcs/pcs_map.c b/fs/fuse/kio/pcs/pcs_map.c
index a40cc6830a83..f84cd30ed0d6 100644
--- a/fs/fuse/kio/pcs/pcs_map.c
+++ b/fs/fuse/kio/pcs/pcs_map.c
@@ -2243,7 +2243,7 @@ static int pcs_cslist_submit_write(struct pcs_int_request *ireq, struct pcs_cs_l
 		struct pcs_int_request * sreq = ireq;
 		unsigned int weight;
 
-		if (ireq->iochunk.size > iochunk) {
+		if (ireq->iochunk.size > iochunk && ireq->iochunk.cmd == PCS_REQ_T_WRITE) {
 			sreq = pcs_ireq_split(ireq, iochunk, 0);
 
 			if (sreq == NULL) {
-- 
2.43.5



More information about the Devel mailing list