From 33809f6c7382ab07d018809922a2a2b06e798b63 Mon Sep 17 00:00:00 2001 From: Joe Buehler Date: Wed, 13 Oct 2004 15:07:53 +0000 Subject: [PATCH] linux-pagelaunder-avoid-deadlock-20041012 FIXES 15239 mmap'd files can deadlock on linux; fix by not letting kernel free pages out of our space predictively ==================== This delta was composed from multiple commits as part of the CVS->Git migration. The checkin message with each commit was inconsistent. The following are the additional commit messages. ==================== FIXES 15239 mmap'd files can deadlock on linux; fix by not letting kernel free pages out of our space predictively --- src/afs/LINUX/osi_vnodeops.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/afs/LINUX/osi_vnodeops.c b/src/afs/LINUX/osi_vnodeops.c index c09561a..8178d0b 100644 --- a/src/afs/LINUX/osi_vnodeops.c +++ b/src/afs/LINUX/osi_vnodeops.c @@ -1480,6 +1480,12 @@ afs_linux_writepage(struct page *pp) unsigned offset = PAGE_CACHE_SIZE; long status; +#ifdef PageLaunder + if (PageLaunder(pp)) { + return(fail_writepage(pp)); + } +#endif + inode = (struct inode *)mapping->host; end_index = inode->i_size >> PAGE_CACHE_SHIFT; -- 1.9.4