This reverts commit a8b68fd3911361dbaf66da6786eb3a6d472177c6.

We are going to apply a better fix for seek_data slowness,
so this commit is no longer needed.

https://jira.sw.ru/browse/PSBM-65551
Signed-off-by: Andrey Ryabinin <aryabi...@virtuozzo.com>
---
 fs/ext4/file.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/fs/ext4/file.c b/fs/ext4/file.c
index 167e262..c63d937 100644
--- a/fs/ext4/file.c
+++ b/fs/ext4/file.c
@@ -612,17 +612,7 @@ static loff_t ext4_seek_data(struct file *file, loff_t 
offset, loff_t maxsize)
                        if (unwritten)
                                break;
                }
-               if (signal_pending(current)) {
-                       mutex_unlock(&inode->i_mutex);
-                       return -EINTR;
-               }
-               if (need_resched()) {
-                       mutex_unlock(&inode->i_mutex);
-                       cond_resched();
-                       mutex_lock(&inode->i_mutex);
-                       isize = inode->i_size;
-                       end = isize >> blkbits;
-               }
+
                last++;
                dataoff = (loff_t)last << blkbits;
        } while (last <= end);
-- 
2.10.2

_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel

Reply via email to