[RHEL7,COMMIT] Revert "fs/fuse kio_pcs: add WARN_ON in fuse_size_grow_work() to investigate #PSBM-85945"

Submitted by Konstantin Khorenko on July 4, 2018, 3:06 p.m.

Details

Message ID 201807041506.w64F6nI8008885@finist_ce7.work
State New
Series "Revert "fs/fuse kio_pcs: add WARN_ON in fuse_size_grow_work() to investigate #PSBM-85945""
Headers show

Commit Message

Konstantin Khorenko July 4, 2018, 3:06 p.m.
The commit is pushed to "branch-rh7-3.10.0-862.3.2.vz7.61.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh7-3.10.0-862.3.2.vz7.61.12
------>
commit 37ed71c5c4bd122fd3ec03834c09def6ac184be3
Author: Pavel Butsykin <pbutsykin@virtuozzo.com>
Date:   Wed Jul 4 18:06:49 2018 +0300

    Revert "fs/fuse kio_pcs: add WARN_ON in fuse_size_grow_work() to investigate #PSBM-85945"
    
    This reverts commit 3a13a493f5f87a4e82d52ecc910237c4a1019031.
    
    https://jira.sw.ru/browse/PSBM-85945
    
    Signed-off-by: Pavel Butsykin <pbutsykin@virtuozzo.com>
    Acked-by: Alexey Kuznetsov <kuznet@virtuozzo.com>
---
 fs/fuse/kio/pcs/pcs_fuse_kdirect.c | 9 ---------
 1 file changed, 9 deletions(-)

Patch hide | download patch | download mbox

diff --git a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
index f55a196d5eae..60401252a3b0 100644
--- a/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
+++ b/fs/fuse/kio/pcs/pcs_fuse_kdirect.c
@@ -678,18 +678,9 @@  static void fuse_size_grow_work(struct work_struct *w)
 			size = r->exec.size.required;
 	}
 	di->size.required = size;
-	if (di->fileinfo.attr.size > size) {
-		pr_info("attr.size: %llu, grow_size: %llu, grow_queue: %d\n",
-			di->fileinfo.attr.size, size, list_empty(&di->size.grow_queue));
-		spin_unlock(&di->lock);
-		WARN_ON(1);
-		err = PCS_ERR_IO;
-		goto fail;
-	}
 	spin_unlock(&di->lock);
 
 	err = submit_size_grow(inode, size);
-fail:
 	if (err) {
 		LIST_HEAD(to_fail);