* "ls -l" hangs again since 2.6.34
@ 2012-03-19 20:58 Martin Rusko
0 siblings, 0 replies; only message in thread
From: Martin Rusko @ 2012-03-19 20:58 UTC (permalink / raw)
To: linux-nfs; +Cc: Olle Rämsberg XX
Hi,
originally before 2.6.34 kernel there were two lines in nfs_getattr()
function in inode.c file which suspended/resumed process dirtying pages
to allow flush cached changes to NFS server to get mtime/ctime values
set ...
/*
* Flush out writes to the server in order to update c/mtime.
*
* Hold the i_mutex to suspend application writes temporarily;
* this prevents long-running writing applications from blocking
* nfs_wb_nocommit.
*/
if (S_ISREG(inode->i_mode)) {
mutex_lock(&inode->i_mutex);
nfs_wb_nocommit(inode);
mutex_unlock(&inode->i_mutex);
}
... however this has been replaced in this commit
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git;a=commit;h=3fa04ecd72780da31ba8b329e148179bc24a9c7d
and since then again process writing heavily into files on NFS can block
stat calls on these for dozens of seconds.
Is this case, when one process is writing into a file and thus blocking
another process from doing a stat call on it (which means that RPC
GETATTR must be sent and this can't be done before dirty pages are
written to NFS server) handled somewhere in the code, please?
Best Regards,
Martin
PS: Please, Cc me for any reply as I'm not subscribed. Thanks!
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-19 20:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 20:58 "ls -l" hangs again since 2.6.34 Martin Rusko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.