[patch-2.4.0-test5-pre3] msync(2) optimization

From: Tigran Aivazian (tigran@veritas.com)
Date: Thu Jul 20 2000 - 08:02:55 EST


Hi Linus,

A long time ago (in 2.3.43?) I moved lock/unlock_kernel into individual
f_op->fsync() methods but unfortunately did not notice the
sys_msync() case.

Regards,
Tigran

--- linux/mm/filemap.c Tue Jul 11 19:26:51 2000
+++ work/mm/filemap.c Thu Jul 20 13:57:03 2000
@@ -1744,9 +1744,7 @@
                         struct file * file = vma->vm_file;
                         if (file && file->f_op && file->f_op->fsync) {
                                 down(&file->f_dentry->d_inode->i_sem);
- lock_kernel();
                                 error = file->f_op->fsync(file, file->f_dentry, 1);
- unlock_kernel();
                                 up(&file->f_dentry->d_inode->i_sem);
                         }
                 }

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Jul 23 2000 - 21:00:13 EST