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 <kuz...@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
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to