[Devel] [PATCH RHEL9 COMMIT] fs/fuse: kio: WRITE_HOLE/ZERO should not be chunked
Konstantin Khorenko
khorenko at virtuozzo.com
Fri Oct 25 19:32:27 MSK 2024
The commit is pushed to "branch-rh9-5.14.0-427.37.1.vz9.78.x-ovz" and will appear at git at bitbucket.org:openvz/vzkernel.git
after rh9-5.14.0-427.37.1.vz9.78.1
------>
commit 2b184a76c68b0b0d558cde0b4c56bd7c99f50f13
Author: Alexey Kuznetsov <kuznet at virtuozzo.com>
Date: Fri Oct 25 22:23:01 2024 +0800
fs/fuse: kio: WRITE_HOLE/ZERO should not be chunked
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) {
More information about the Devel
mailing list