From 40da7da7b8855d14011f8c6a86647bdf92004e6f Mon Sep 17 00:00:00 2001 From: green Date: Wed, 1 Jun 2005 08:38:33 +0000 Subject: [PATCH] Branch: b1_4 b=5654 Take i_alloc_sem in nfsd_setattr to be on par with rest of the kernel. --- lustre/kernel_patches/patches/nfsd_iallocsem.patch | 19 +++++++++++++++++++ lustre/kernel_patches/series/rhel-2.4.21 | 1 + lustre/kernel_patches/series/suse-2.4.21-cray | 1 + lustre/kernel_patches/series/suse-2.4.21-jvn | 1 + lustre/kernel_patches/series/vanilla-2.4.24 | 1 + lustre/kernel_patches/series/vanilla-2.4.29 | 1 + lustre/kernel_patches/series/vanilla-2.4.29-uml | 2 ++ 7 files changed, 26 insertions(+) create mode 100644 lustre/kernel_patches/patches/nfsd_iallocsem.patch diff --git a/lustre/kernel_patches/patches/nfsd_iallocsem.patch b/lustre/kernel_patches/patches/nfsd_iallocsem.patch new file mode 100644 index 0000000..96b9c71 --- /dev/null +++ b/lustre/kernel_patches/patches/nfsd_iallocsem.patch @@ -0,0 +1,19 @@ +===== fs/nfsd/vfs.c 1.20 vs edited ===== +--- 1.20/fs/nfsd/vfs.c 2005-02-08 16:35:28 +02:00 ++++ edited/fs/nfsd/vfs.c 2005-05-29 00:46:44 +03:00 +@@ -297,6 +297,7 @@ + iap->ia_valid |= ATTR_CTIME; + + if (iap->ia_valid & ATTR_SIZE) { ++ down_write(&inode->i_alloc_sem); + fh_lock(fhp); + size_change = 1; + } +@@ -307,6 +308,7 @@ + } + if (size_change) { + fh_unlock(fhp); ++ up_write(&inode->i_alloc_sem); + put_write_access(inode); + } + if (!err) diff --git a/lustre/kernel_patches/series/rhel-2.4.21 b/lustre/kernel_patches/series/rhel-2.4.21 index 53e17a1..adbed63 100644 --- a/lustre/kernel_patches/series/rhel-2.4.21 +++ b/lustre/kernel_patches/series/rhel-2.4.21 @@ -48,3 +48,4 @@ grab_cache_page_nowait_gfp-rh-2.4.patch remove-suid-2.4-rhel.patch qsnet-rhel-2.4.patch fsprivate-2.4.patch +nfsd_iallocsem.patch diff --git a/lustre/kernel_patches/series/suse-2.4.21-cray b/lustre/kernel_patches/series/suse-2.4.21-cray index 12ca06b..d0e715e 100644 --- a/lustre/kernel_patches/series/suse-2.4.21-cray +++ b/lustre/kernel_patches/series/suse-2.4.21-cray @@ -33,3 +33,4 @@ loop-sync-2.4.21-suse.patch ext3-extents-2.4.21-suse2.patch ext3-extents-asyncdel-2.4.24.patch fsprivate-2.4-suse.patch +nfsd_iallocsem.patch diff --git a/lustre/kernel_patches/series/suse-2.4.21-jvn b/lustre/kernel_patches/series/suse-2.4.21-jvn index 21301e7..ddcefe4 100644 --- a/lustre/kernel_patches/series/suse-2.4.21-jvn +++ b/lustre/kernel_patches/series/suse-2.4.21-jvn @@ -28,3 +28,4 @@ listman-2.4.20.patch ext3-truncate-buffer-head.patch lookup-stack-symbols-2.4.21-suse-171.patch fsprivate-2.4-suse.patch +nfsd_iallocsem.patch diff --git a/lustre/kernel_patches/series/vanilla-2.4.24 b/lustre/kernel_patches/series/vanilla-2.4.24 index 6039450..144e66e 100644 --- a/lustre/kernel_patches/series/vanilla-2.4.24 +++ b/lustre/kernel_patches/series/vanilla-2.4.24 @@ -45,3 +45,4 @@ uml-sigusr1-2.4-vanilla.patch remove-suid-2.4-rhel.patch uml-exprt-clearuser.patch fsprivate-2.4.patch +nfsd_iallocsem.patch diff --git a/lustre/kernel_patches/series/vanilla-2.4.29 b/lustre/kernel_patches/series/vanilla-2.4.29 index 394dd49..7b38830 100644 --- a/lustre/kernel_patches/series/vanilla-2.4.29 +++ b/lustre/kernel_patches/series/vanilla-2.4.29 @@ -40,3 +40,4 @@ export-zap-page-range.patch remove-suid-2.4-rhel.patch kallsyms-2.4.29.patch fsprivate-2.4.patch +nfsd_iallocsem.patch diff --git a/lustre/kernel_patches/series/vanilla-2.4.29-uml b/lustre/kernel_patches/series/vanilla-2.4.29-uml index f0c0f4c..3bd5fd2 100644 --- a/lustre/kernel_patches/series/vanilla-2.4.29-uml +++ b/lustre/kernel_patches/series/vanilla-2.4.29-uml @@ -43,3 +43,5 @@ export-show_task-2.4-vanilla.patch export-zap-page-range.patch remove-suid-2.4-rhel.patch kallsyms-2.4.29.patch +fsprivate-2.4.patch +nfsd_iallocsem.patch -- 1.8.3.1