[Devel] [PATCH VZ9 1/3] fs: fuse: kio: WRITE_HOLE/ZERO should not be chunked
Alexey Kuznetsov
kuznet at virtuozzo.com
Fri Oct 25 17:23:01 MSK 2024
No actual impact on performance as all the chunks are sent
in parallel, yet it is huge resource overconsumption.
Affects: #VSTOR-94452
Signed-off-by: Alexey Kuznetsov <kuznet at virtuozzo.com>
---
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 a40cc68..f84cd30 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) {
--
1.8.3.1
More information about the Devel
mailing list