From 2f9dcc357791b94f0f9a7807095f4146813e5cd3 Mon Sep 17 00:00:00 2001 From: Laurent Aimar Date: Sat, 1 Aug 2009 13:52:06 +0200 Subject: [PATCH] Removed prefetch whole file advise in the file access. On all my linux PC (debian sid and lenny) it has really bad side effects, mostly when seeking and at startup up (slow or even blocking), and makes sshfs unusable. --- modules/access/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/access/file.c b/modules/access/file.c index d85cc7d590..fc4a3c66be 100644 --- a/modules/access/file.c +++ b/modules/access/file.c @@ -322,8 +322,6 @@ static ssize_t Read( access_t *p_access, uint8_t *p_buffer, size_t i_len ) p_access->info.i_update |= INPUT_UPDATE_SIZE; } #endif - /* Pre-fetch until the end (within memory limits) */ - posix_fadvise (fd, p_access->info.i_pos, 0, POSIX_FADV_WILLNEED); } return i_ret; } -- 2.39.2