linux-pagelaunder-avoid-deadlock-20041012
authorJoe Buehler <jbuehler@hekimian.com>
Wed, 13 Oct 2004 15:07:53 +0000 (15:07 +0000)
committerDerrick Brashear <shadow@dementia.org>
Wed, 13 Oct 2004 15:07:53 +0000 (15:07 +0000)
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

index c09561a..8178d0b 100644 (file)
@@ -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;