Gentoo Archives: gentoo-commits

From: Alexey Shvetsov <alexxy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sys-cluster/lustre/, sys-cluster/lustre/files/
Date: Sun, 31 Mar 2013 11:15:17
Message-Id: 1364728461.a2e187caf28d7c04d07005496f8ecfaeaaefb5c2.alexxy@gentoo
1 commit: a2e187caf28d7c04d07005496f8ecfaeaaefb5c2
2 Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 31 11:14:21 2013 +0000
4 Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 31 11:14:21 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=a2e187ca
7
8 Update rebased patches
9
10 Package-Manager: portage-2.2.0_alpha170
11 RepoMan-Options: --force
12
13 ---
14 sys-cluster/lustre/ChangeLog | 21 +++++
15 ...d-make-AC-check-for-linux-arch-sandbox-f.patch} | 22 +++--
16 ...fs-use-sock_alloc_file-instead-of-sock_m.patch} | 8 +-
17 ...at-posix_acl_-to-from-_xattr-take-user_n.patch} | 10 +-
18 ...04-LU-2800-llite-introduce-local-getname.patch} | 4 +-
19 ...d-check-header-files-in-generated-uapi-d.patch} | 24 +++---
20 ...0-kernel-3.8-upstream-removes-vmtruncate.patch} | 4 +-
21 ...2850-kernel-3.8-upstream-kills-daemonize.patch} | 42 +++++-----
22 ...rnel-3.9-hlist_for_each_entry-uses-3-args.patch | 87 --------------------
23 ...tch => 0008-LU-2987-llite-rcu-free-inode.patch} | 4 +-
24 sys-cluster/lustre/lustre-9999.ebuild | 17 ++--
25 11 files changed, 89 insertions(+), 154 deletions(-)
26
27 diff --git a/sys-cluster/lustre/ChangeLog b/sys-cluster/lustre/ChangeLog
28 index bce1420..16471dd 100644
29 --- a/sys-cluster/lustre/ChangeLog
30 +++ b/sys-cluster/lustre/ChangeLog
31 @@ -2,6 +2,27 @@
32 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
33 # $Header: $
34
35 + 31 Mar 2013; Alexey Shvetsov <alexxy@g.o>
36 + +files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch,
37 + +files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch,
38 + +files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch,
39 + +files/0004-LU-2800-llite-introduce-local-getname.patch,
40 + +files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch,
41 + +files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch,
42 + +files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch,
43 + +files/0008-LU-2987-llite-rcu-free-inode.patch,
44 + -files/0000-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch,
45 + -files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch,
46 + -files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch,
47 + -files/0003-LU-2800-llite-introduce-local-getname.patch,
48 + -files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch,
49 + -files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch,
50 + -files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch,
51 + -files/0007-LU-2987-llite-rcu-free-inode.patch,
52 + -files/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch,
53 + lustre-9999.ebuild:
54 + Update rebased patches
55 +
56 27 Mar 2013; Alexey Shvetsov <alexxy@g.o>
57 +files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch,
58 +files/0003-LU-2800-llite-introduce-local-getname.patch,
59
60 diff --git a/sys-cluster/lustre/files/0000-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch b/sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
61 similarity index 79%
62 rename from sys-cluster/lustre/files/0000-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
63 rename to sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
64 index 1602cb0..3f372ac 100644
65 --- a/sys-cluster/lustre/files/0000-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
66 +++ b/sys-cluster/lustre/files/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch
67 @@ -1,7 +1,8 @@
68 -From 1154d0914e29f3d6badb63913855faa008ac7b7b Mon Sep 17 00:00:00 2001
69 +From d0169772fa2ebda3ed5c619d5e5cd6339973b0a0 Mon Sep 17 00:00:00 2001
70 From: Alexey Shvetsov <alexxy@g.o>
71 Date: Mon, 18 Mar 2013 16:22:27 +0400
72 -Subject: [PATCH] LU-2982 build: make AC check for linux arch sandbox friendly
73 +Subject: [PATCH 1/8] LU-2982 build: make AC check for linux arch sandbox
74 + friendly
75
76 this commit makes AC check for linux kernel arch sandbox friendly
77
78 @@ -9,14 +10,14 @@ Signed-off-by: Alexey Shvetsov <alexxy@g.o>
79 Change-Id: I173cd892bca5587519806cf6d300a5053dfb935f
80 Signed-off-by: Alexey Shvetsov <alexxy@g.o>
81 ---
82 - build/autoconf/lustre-build-linux.m4 | 65 +++++++++++++++++++++++++++++++-----
83 - 1 file changed, 57 insertions(+), 8 deletions(-)
84 + config/lustre-build-linux.m4 | 66 ++++++++++++++++++++++++++++++++++++++------
85 + 1 file changed, 58 insertions(+), 8 deletions(-)
86
87 -diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4
88 -index 4c0a581..9fcd0b3 100644
89 ---- a/build/autoconf/lustre-build-linux.m4
90 -+++ b/build/autoconf/lustre-build-linux.m4
91 -@@ -363,14 +363,63 @@ rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.
92 +diff --git a/config/lustre-build-linux.m4 b/config/lustre-build-linux.m4
93 +index ec77262..244d398 100644
94 +--- a/config/lustre-build-linux.m4
95 ++++ b/config/lustre-build-linux.m4
96 +@@ -325,14 +325,64 @@ rm -f build/conftest.o build/conftest.mod.c build/conftest.mod.o build/conftest.
97 # Determine the kernel's idea of the current architecture
98 #
99 AC_DEFUN([LB_LINUX_ARCH],
100 @@ -44,7 +45,8 @@ index 4c0a581..9fcd0b3 100644
101 + #ifdef CONFIG_X86
102 + #ifdef CONFIG_X86_32
103 + #define UTS_MACHINE i386
104 -+ #else
105 ++ #endif
106 ++ #ifdef CONFIG_X86_64
107 + #define UTS_MACHINE x86_64
108 + #endif
109 + #endif
110
111 diff --git a/sys-cluster/lustre/files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch b/sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
112 similarity index 94%
113 rename from sys-cluster/lustre/files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
114 rename to sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
115 index d776d34..fe43064 100644
116 --- a/sys-cluster/lustre/files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
117 +++ b/sys-cluster/lustre/files/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch
118 @@ -1,7 +1,7 @@
119 -From b6d238eff4b7417cb5d5d9882b00c630b6ab2ee1 Mon Sep 17 00:00:00 2001
120 +From 8258deb14e38559bf5ef37bd50a0918cdf473c00 Mon Sep 17 00:00:00 2001
121 From: Jeff Mahoney <jeffm@××××.com>
122 Date: Wed, 13 Feb 2013 02:45:16 -0500
123 -Subject: [PATCH 1/7] LU-2800 libcfs: use sock_alloc_file instead of
124 +Subject: [PATCH 2/8] LU-2800 libcfs: use sock_alloc_file instead of
125 sock_map_fd
126
127 v2.6.27 added a second argument to sock_map_fd. Earlier versions are
128 @@ -19,7 +19,7 @@ Change-Id: I4e12da8c102b5d682db9658187330ae601b00a21
129 2 files changed, 22 insertions(+), 13 deletions(-)
130
131 diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4
132 -index e661f7d..977518a 100644
133 +index e661f7d..e84cd74 100644
134 --- a/libcfs/autoconf/lustre-libcfs.m4
135 +++ b/libcfs/autoconf/lustre-libcfs.m4
136 @@ -500,18 +500,19 @@ LB_LINUX_TRY_COMPILE([
137 @@ -35,7 +35,7 @@ index e661f7d..977518a 100644
138 #include <linux/net.h>
139 ],[
140 - sock_map_fd(NULL, 0);
141 -+ sock_alloc_file(NULL, 0);
142 ++ sock_alloc_file(NULL, 0, NULL);
143 ],[
144 - AC_MSG_RESULT(yes)
145 - AC_DEFINE(HAVE_SOCK_MAP_FD_2ARG, 1,
146
147 diff --git a/sys-cluster/lustre/files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch b/sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
148 similarity index 95%
149 rename from sys-cluster/lustre/files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
150 rename to sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
151 index de2178c..9f05db0 100644
152 --- a/sys-cluster/lustre/files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
153 +++ b/sys-cluster/lustre/files/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch
154 @@ -1,7 +1,7 @@
155 -From 66f494869c183a010a40397221e55c625e5d2e8b Mon Sep 17 00:00:00 2001
156 +From 3050d2c9cccb51ce521bdbecd471cb6ce18f77b8 Mon Sep 17 00:00:00 2001
157 From: Jeff Mahoney <jeffm@××××.com>
158 Date: Wed, 20 Mar 2013 17:33:17 -0400
159 -Subject: [PATCH 2/7] LU-2850 compat: posix_acl_{to,from}_xattr take
160 +Subject: [PATCH 3/8] LU-2850 compat: posix_acl_{to,from}_xattr take
161 user_namespace
162
163 Commit 5f3a4a28 (v3.7) added a struct user_namespace argument to
164 @@ -121,7 +121,7 @@ index 14f3ef6..eb62458 100644
165 int posix_acl_valid(const struct posix_acl *acl)
166 {
167 diff --git a/lustre/llite/xattr.c b/lustre/llite/xattr.c
168 -index 24a89eb..9575739 100644
169 +index f9e425d..7e3eb53 100644
170 --- a/lustre/llite/xattr.c
171 +++ b/lustre/llite/xattr.c
172 @@ -345,7 +345,7 @@ int ll_getxattr_common(struct inode *inode, const char *name,
173 @@ -134,7 +134,7 @@ index 24a89eb..9575739 100644
174 RETURN(rc);
175 }
176 diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c
177 -index fd087a5..d67db9d 100644
178 +index 9f3dea4..c9aa7a0 100644
179 --- a/lustre/mdc/mdc_request.c
180 +++ b/lustre/mdc/mdc_request.c
181 @@ -41,6 +41,7 @@
182 @@ -145,7 +145,7 @@ index fd087a5..d67db9d 100644
183 #else
184 # include <liblustre.h>
185 #endif
186 -@@ -466,7 +467,7 @@ static int mdc_unpack_acl(struct ptlrpc_request *req, struct lustre_md *md)
187 +@@ -465,7 +466,7 @@ static int mdc_unpack_acl(struct ptlrpc_request *req, struct lustre_md *md)
188 if (!buf)
189 RETURN(-EPROTO);
190
191
192 diff --git a/sys-cluster/lustre/files/0003-LU-2800-llite-introduce-local-getname.patch b/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch
193 similarity index 95%
194 rename from sys-cluster/lustre/files/0003-LU-2800-llite-introduce-local-getname.patch
195 rename to sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch
196 index 18fd7cf..e194dfd 100644
197 --- a/sys-cluster/lustre/files/0003-LU-2800-llite-introduce-local-getname.patch
198 +++ b/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch
199 @@ -1,7 +1,7 @@
200 -From f56dde4b75bf7cddf7c6da1ebdda3000b4f4c284 Mon Sep 17 00:00:00 2001
201 +From 4f1bc5cb857ebba89b84d27ed5ed6531b8a59058 Mon Sep 17 00:00:00 2001
202 From: Jeff Mahoney <jeffm@××××.com>
203 Date: Tue, 19 Mar 2013 21:18:32 -0400
204 -Subject: [PATCH 3/7] LU-2800 llite: introduce local getname()
205 +Subject: [PATCH 4/8] LU-2800 llite: introduce local getname()
206
207 Commit 8e377d15 (v3.7) unexported getname and putname. Although
208 getname was re-exported, putname was not. All we really need is
209
210 diff --git a/sys-cluster/lustre/files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch b/sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch
211 similarity index 93%
212 rename from sys-cluster/lustre/files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch
213 rename to sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch
214 index 83aca65..a802215 100644
215 --- a/sys-cluster/lustre/files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch
216 +++ b/sys-cluster/lustre/files/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch
217 @@ -1,7 +1,7 @@
218 -From 9960d414ad44b844306dd5aa82d4e8aabbb68261 Mon Sep 17 00:00:00 2001
219 +From 60c775330c663b7ecd32f314ab156ad0ba0ea072 Mon Sep 17 00:00:00 2001
220 From: Peng Tao <tao.peng@×××.com>
221 Date: Wed, 27 Feb 2013 18:29:34 +0800
222 -Subject: [PATCH 4/7] LU-2850 build: check header files in generated uapi dir
223 +Subject: [PATCH 5/8] LU-2850 build: check header files in generated uapi dir
224
225 Upstream moved UAPI headers into generated/uapi directory since
226 v3.7. We need to check/include necessary header files there.
227 @@ -9,15 +9,15 @@ v3.7. We need to check/include necessary header files there.
228 Signed-off-by: Peng Tao <tao.peng@×××.com>
229 Change-Id: Ib104919189ebc0af7d3b5e9ca3b866b3b98be3dc
230 ---
231 - autoMakefile.am | 2 +-
232 - build/autoconf/lustre-build-linux.m4 | 14 ++++++++------
233 - ldiskfs/config/ldiskfs-build.m4 | 14 ++++++++------
234 - lustre/autoconf/lustre-core.m4 | 2 +-
235 - lustre/scripts/version_tag.pl | 1 +
236 + autoMakefile.am | 2 +-
237 + config/lustre-build-linux.m4 | 14 ++++++++------
238 + ldiskfs/config/ldiskfs-build.m4 | 14 ++++++++------
239 + lustre/autoconf/lustre-core.m4 | 2 +-
240 + lustre/scripts/version_tag.pl | 1 +
241 5 files changed, 19 insertions(+), 14 deletions(-)
242
243 diff --git a/autoMakefile.am b/autoMakefile.am
244 -index 8a259bc..6cc5f6d 100644
245 +index 79bcd65..93608de 100644
246 --- a/autoMakefile.am
247 +++ b/autoMakefile.am
248 @@ -84,7 +84,7 @@ all-am: modules
249 @@ -29,10 +29,10 @@ index 8a259bc..6cc5f6d 100644
250 $(MODULE_TARGET)=$(PWD) -o tmp_include_depends -o scripts -o \
251 include/config/MARKER $@
252 endif # LINUX
253 -diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4
254 -index ec77262..5c7c227 100644
255 ---- a/build/autoconf/lustre-build-linux.m4
256 -+++ b/build/autoconf/lustre-build-linux.m4
257 +diff --git a/config/lustre-build-linux.m4 b/config/lustre-build-linux.m4
258 +index 244d398..b995875 100644
259 +--- a/config/lustre-build-linux.m4
260 ++++ b/config/lustre-build-linux.m4
261 @@ -44,7 +44,7 @@ AC_MSG_CHECKING([for Linux release])
262 if test -s $LINUX_OBJ/include/$AUTOCONF_HDIR/utsrelease.h ; then
263 LINUXRELEASEHEADER=$AUTOCONF_HDIR/utsrelease.h
264
265 diff --git a/sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch b/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
266 similarity index 93%
267 rename from sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
268 rename to sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
269 index 1222d02..380597d 100644
270 --- a/sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
271 +++ b/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch
272 @@ -1,7 +1,7 @@
273 -From 043935d6e6e3ac7d988ef809cd7c16233fb8be65 Mon Sep 17 00:00:00 2001
274 +From 19491f9e67e43ae10ae1f71e38730606e2c518a8 Mon Sep 17 00:00:00 2001
275 From: Alexey Shvetsov <alexxy@g.o>
276 Date: Wed, 27 Mar 2013 08:49:01 +0400
277 -Subject: [PATCH 5/7] LU-2850 kernel: 3.8 upstream removes vmtruncate()
278 +Subject: [PATCH 6/8] LU-2850 kernel: 3.8 upstream removes vmtruncate()
279
280 vmtruncate() is removed since upstream commit b9f61c3.
281 We can open code is for llite though.
282
283 diff --git a/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch b/sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
284 similarity index 98%
285 rename from sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
286 rename to sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
287 index 4f4e3ca..b6d2434 100644
288 --- a/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
289 +++ b/sys-cluster/lustre/files/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch
290 @@ -1,7 +1,7 @@
291 -From 089c9fcca75da19ea13215925fc2cfb83d5dddb4 Mon Sep 17 00:00:00 2001
292 +From fc013881dd3b551e8fb8a5f6722a359c56c7bf63 Mon Sep 17 00:00:00 2001
293 From: Peng Tao <tao.peng@×××.com>
294 Date: Mon, 18 Mar 2013 10:47:57 +0800
295 -Subject: [PATCH 6/7] LU-2850 kernel: 3.8 upstream kills daemonize()
296 +Subject: [PATCH 7/8] LU-2850 kernel: 3.8 upstream kills daemonize()
297
298 kernel_thread() is a low level kernel function.
299 Instead of calling kernel_thread() and relying on daemonize()
300 @@ -88,7 +88,7 @@ Change-Id: I9f977bfc5d58192957d8c8d634204f4910edfa2a
301 delete mode 100644 libcfs/libcfs/linux/linux-lwt.c
302
303 diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4
304 -index 977518a..8655c99 100644
305 +index e84cd74..5789166 100644
306 --- a/libcfs/autoconf/lustre-libcfs.m4
307 +++ b/libcfs/autoconf/lustre-libcfs.m4
308 @@ -639,15 +639,6 @@ LB_LINUX_TRY_COMPILE([
309 @@ -2105,10 +2105,10 @@ index 4c58181..1d4e2e8 100644
310 cfs_module_put(THIS_MODULE);
311 return error;
312 diff --git a/lustre/llite/statahead.c b/lustre/llite/statahead.c
313 -index 9eea49e..cb11191 100644
314 +index 6d5b7af..3211557 100644
315 --- a/lustre/llite/statahead.c
316 +++ b/lustre/llite/statahead.c
317 -@@ -998,12 +998,6 @@ static int ll_agl_thread(void *arg)
318 +@@ -981,12 +981,6 @@ static int ll_agl_thread(void *arg)
319 struct l_wait_info lwi = { 0 };
320 ENTRY;
321
322 @@ -2121,7 +2121,7 @@ index 9eea49e..cb11191 100644
323 CDEBUG(D_READA, "agl thread started: [pid %d] [parent %.*s]\n",
324 cfs_curproc_pid(), parent->d_name.len, parent->d_name.name);
325
326 -@@ -1057,25 +1051,28 @@ static int ll_agl_thread(void *arg)
327 +@@ -1040,25 +1034,28 @@ static int ll_agl_thread(void *arg)
328
329 static void ll_start_agl(struct dentry *parent, struct ll_statahead_info *sai)
330 {
331 @@ -2166,7 +2166,7 @@ index 9eea49e..cb11191 100644
332 }
333
334 static int ll_statahead_thread(void *arg)
335 -@@ -1096,12 +1093,6 @@ static int ll_statahead_thread(void *arg)
336 +@@ -1079,12 +1076,6 @@ static int ll_statahead_thread(void *arg)
337 struct l_wait_info lwi = { 0 };
338 ENTRY;
339
340 @@ -2179,7 +2179,7 @@ index 9eea49e..cb11191 100644
341 CDEBUG(D_READA, "statahead thread started: [pid %d] [parent %.*s]\n",
342 cfs_curproc_pid(), parent->d_name.len, parent->d_name.name);
343
344 -@@ -1565,6 +1556,7 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp,
345 +@@ -1548,6 +1539,7 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp,
346 struct ptlrpc_thread *thread;
347 struct l_wait_info lwi = { 0 };
348 int rc = 0;
349 @@ -2187,7 +2187,7 @@ index 9eea49e..cb11191 100644
350 ENTRY;
351
352 LASSERT(lli->lli_opendir_pid == cfs_curproc_pid());
353 -@@ -1709,11 +1701,14 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp,
354 +@@ -1693,11 +1685,14 @@ int do_statahead_enter(struct inode *dir, struct dentry **dentryp,
355 cfs_curproc_pid(), parent->d_name.len, parent->d_name.name);
356
357 lli->lli_sai = sai;
358 @@ -2208,10 +2208,10 @@ index 9eea49e..cb11191 100644
359 thread_set_flags(thread, SVC_STOPPED);
360 thread_set_flags(&sai->sai_agl_thread, SVC_STOPPED);
361 diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c
362 -index d67db9d..cf4c46c 100644
363 +index c9aa7a0..ead4bcf 100644
364 --- a/lustre/mdc/mdc_request.c
365 +++ b/lustre/mdc/mdc_request.c
366 -@@ -1567,13 +1567,6 @@ static int mdc_changelog_send_thread(void *csdata)
367 +@@ -1566,13 +1566,6 @@ static int mdc_changelog_send_thread(void *csdata)
368 CDEBUG(D_CHANGELOG, "changelog to fp=%p start "LPU64"\n",
369 cs->cs_fp, cs->cs_startrec);
370
371 @@ -2225,7 +2225,7 @@ index d67db9d..cf4c46c 100644
372 OBD_ALLOC(cs->cs_buf, CR_MAXSIZE);
373 if (cs->cs_buf == NULL)
374 GOTO(out, rc = -ENOMEM);
375 -@@ -1610,12 +1603,10 @@ out:
376 +@@ -1609,12 +1602,10 @@ out:
377 llog_cat_close(NULL, llh);
378 if (ctxt)
379 llog_ctxt_put(ctxt);
380 @@ -2242,7 +2242,7 @@ index d67db9d..cf4c46c 100644
381 }
382
383 static int mdc_ioc_changelog_send(struct obd_device *obd,
384 -@@ -1635,13 +1626,16 @@ static int mdc_ioc_changelog_send(struct obd_device *obd,
385 +@@ -1634,13 +1625,16 @@ static int mdc_ioc_changelog_send(struct obd_device *obd,
386 cs->cs_fp = fget(icc->icc_id);
387 cs->cs_flags = icc->icc_flags;
388
389 @@ -2506,7 +2506,7 @@ index f08fd6e..ce22932 100644
390 loghandle->lgh_ctxt->loc_obd->obd_name, rc);
391 OBD_FREE_PTR(lpi);
392 diff --git a/lustre/osd-ldiskfs/osd_scrub.c b/lustre/osd-ldiskfs/osd_scrub.c
393 -index 3736410..8d53834 100644
394 +index 1e27918..f122d38 100644
395 --- a/lustre/osd-ldiskfs/osd_scrub.c
396 +++ b/lustre/osd-ldiskfs/osd_scrub.c
397 @@ -962,7 +962,6 @@ static int osd_scrub_main(void *args)
398 @@ -2529,7 +2529,7 @@ index 3736410..8d53834 100644
399 LDISKFS_SB(osd_sb(dev))->s_es->s_volume_name, rc);
400 RETURN(rc);
401 diff --git a/lustre/osp/osp_precreate.c b/lustre/osp/osp_precreate.c
402 -index 1836f18..af52b9e 100644
403 +index 9b3febc..51c2c94 100644
404 --- a/lustre/osp/osp_precreate.c
405 +++ b/lustre/osp/osp_precreate.c
406 @@ -881,15 +881,11 @@ static int osp_precreate_thread(void *_arg)
407 @@ -2548,7 +2548,7 @@ index 1836f18..af52b9e 100644
408 rc = lu_env_init(&env, d->opd_dt_dev.dd_lu_dev.ld_type->ldt_ctx_tags);
409 if (rc) {
410 CERROR("%s: init env error: rc = %d\n", d->opd_obd->obd_name,
411 -@@ -1258,7 +1254,7 @@ out:
412 +@@ -1260,7 +1256,7 @@ out:
413 int osp_init_precreate(struct osp_device *d)
414 {
415 struct l_wait_info lwi = { 0 };
416 @@ -2557,7 +2557,7 @@ index 1836f18..af52b9e 100644
417
418 ENTRY;
419
420 -@@ -1293,10 +1289,11 @@ int osp_init_precreate(struct osp_device *d)
421 +@@ -1295,10 +1291,11 @@ int osp_init_precreate(struct osp_device *d)
422 /*
423 * start thread handling precreation and statfs updates
424 */
425 @@ -2574,10 +2574,10 @@ index 1836f18..af52b9e 100644
426
427 l_wait_event(d->opd_pre_thread.t_ctl_waitq,
428 diff --git a/lustre/osp/osp_sync.c b/lustre/osp/osp_sync.c
429 -index 219744f..67863a2 100644
430 +index dfa263e..fddd9b6 100644
431 --- a/lustre/osp/osp_sync.c
432 +++ b/lustre/osp/osp_sync.c
433 -@@ -838,7 +838,6 @@ static int osp_sync_thread(void *_arg)
434 +@@ -827,7 +827,6 @@ static int osp_sync_thread(void *_arg)
435 struct llog_handle *llh;
436 struct lu_env env;
437 int rc, count;
438 @@ -2585,7 +2585,7 @@ index 219744f..67863a2 100644
439
440 ENTRY;
441
442 -@@ -849,9 +848,6 @@ static int osp_sync_thread(void *_arg)
443 +@@ -838,9 +837,6 @@ static int osp_sync_thread(void *_arg)
444 RETURN(rc);
445 }
446
447 @@ -2595,7 +2595,7 @@ index 219744f..67863a2 100644
448 spin_lock(&d->opd_syn_lock);
449 thread->t_flags = SVC_RUNNING;
450 spin_unlock(&d->opd_syn_lock);
451 -@@ -1055,8 +1051,9 @@ int osp_sync_init(const struct lu_env *env, struct osp_device *d)
452 +@@ -1044,8 +1040,9 @@ int osp_sync_init(const struct lu_env *env, struct osp_device *d)
453 cfs_waitq_init(&d->opd_syn_thread.t_ctl_waitq);
454 CFS_INIT_LIST_HEAD(&d->opd_syn_committed_there);
455
456
457 diff --git a/sys-cluster/lustre/files/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch b/sys-cluster/lustre/files/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch
458 deleted file mode 100644
459 index 3f63488..0000000
460 --- a/sys-cluster/lustre/files/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch
461 +++ /dev/null
462 @@ -1,87 +0,0 @@
463 -From c0de4e9ce93a4c803c17c0ff6dffdebf3fd407b1 Mon Sep 17 00:00:00 2001
464 -From: Alexey Shvetsov <alexxy@g.o>
465 -Date: Fri, 22 Mar 2013 14:36:15 +0400
466 -Subject: [PATCH] LU-2850 kernel: 3.9 hlist_for_each_entry uses 3 args
467 -
468 -In 3.9 hlist_for_each_entry use 3 args since commit
469 -
470 -commit b67bfe0d42cac56c512dd5da4b1b347a23f4b70a
471 -Author: Sasha Levin <sasha.levin@××××××.com>
472 -Date: Wed Feb 27 17:06:00 2013 -0800
473 -
474 - hlist: drop the node parameter from iterators
475 -
476 -Signed-off-by: Alexey Shvetsov <alexxy@g.o>
477 -Change-Id: I8f38d562607de21771b03575e37cc0498867a570
478 ----
479 - lustre/autoconf/lustre-core.m4 | 28 ++++++++++++++++++++++++++++
480 - lustre/include/linux/lustre_compat25.h | 5 +++++
481 - 2 files changed, 33 insertions(+)
482 -
483 -diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4
484 -index 78dbe99..b8b8ae7 100644
485 ---- a/lustre/autoconf/lustre-core.m4
486 -+++ b/lustre/autoconf/lustre-core.m4
487 -@@ -2272,6 +2272,31 @@ LB_LINUX_TRY_COMPILE([
488 -
489 -
490 - #
491 -+# 3.9 uses hlist_for_each_entry with 3 args
492 -+# b67bfe0d42cac56c512dd5da4b1b347a23f4b70a
493 -+#
494 -+AC_DEFUN([LC_HAVE_HLIST_FOR_EACH_3ARG],
495 -+[AC_MSG_CHECKING([if hlist_for_each_entry has 3 args])
496 -+tmp_flags="$EXTRA_KCFLAGS"
497 -+EXTRA_KCFLAGS="-Werror"
498 -+LB_LINUX_TRY_COMPILE([
499 -+ #include <linux/list.h>
500 -+ #include <linux/fs.h>
501 -+],[
502 -+ struct inode *inode;
503 -+ struct dentry *dentry;
504 -+ hlist_for_each_entry(dentry, &inode->i_dentry, d_alias) {
505 -+ continue;
506 -+ }
507 -+],[
508 -+ AC_DEFINE(HAVE_HLIST_FOR_EACH_3ARG, 1, [3 args])
509 -+ AC_MSG_RESULT([yes])
510 -+],[
511 -+ AC_MSG_RESULT([no])
512 -+])
513 -+])
514 -+
515 -+#
516 - # LC_PROG_LINUX
517 - #
518 - # Lustre linux kernel checks
519 -@@ -2457,6 +2482,9 @@ AC_DEFUN([LC_PROG_LINUX],
520 - # 3.8
521 - LC_HAVE_MM_VMTRUNCATE
522 -
523 -+ # 3.9
524 -+ LC_HAVE_HLIST_FOR_EACH_3ARG
525 -+
526 - #
527 - if test x$enable_server = xyes ; then
528 - AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server])
529 -diff --git a/lustre/include/linux/lustre_compat25.h b/lustre/include/linux/lustre_compat25.h
530 -index d25c168..06a3a50 100644
531 ---- a/lustre/include/linux/lustre_compat25.h
532 -+++ b/lustre/include/linux/lustre_compat25.h
533 -@@ -611,8 +611,13 @@ static inline int ll_quota_off(struct super_block *sb, int off, int remount)
534 - #define ll_d_hlist_empty(list) hlist_empty(list)
535 - #define ll_d_hlist_entry(ptr, type, name) hlist_entry(ptr.first, type, name)
536 - #define ll_d_hlist_for_each(tmp, i_dentry) hlist_for_each(tmp, i_dentry)
537 -+#ifdef HAVE_HLIST_FOR_EACH_3ARG
538 -+#define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \
539 -+ p = NULL; hlist_for_each_entry(dentry, i_dentry, alias)
540 -+#else
541 - #define ll_d_hlist_for_each_entry(dentry, p, i_dentry, alias) \
542 - hlist_for_each_entry(dentry, p, i_dentry, alias)
543 -+#endif
544 - #else
545 - #define ll_d_hlist_node list_head
546 - #define ll_d_hlist_empty(list) list_empty(list)
547 ---
548 -1.8.1.5
549 -
550
551 diff --git a/sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch b/sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch
552 similarity index 95%
553 rename from sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch
554 rename to sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch
555 index 0055d26..35d281d 100644
556 --- a/sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch
557 +++ b/sys-cluster/lustre/files/0008-LU-2987-llite-rcu-free-inode.patch
558 @@ -1,7 +1,7 @@
559 -From c38a8fce9d43a0b188360d504adc3cac7ae775c4 Mon Sep 17 00:00:00 2001
560 +From 77ae599340fc509002f2875257c2e024fb1b44fb Mon Sep 17 00:00:00 2001
561 From: Peng Tao <tao.peng@×××.com>
562 Date: Tue, 19 Mar 2013 14:04:47 +0800
563 -Subject: [PATCH 7/7] LU-2987 llite: rcu-free inode
564 +Subject: [PATCH 8/8] LU-2987 llite: rcu-free inode
565
566 Since 2.6.38, inode.i_rcu was added and file system .destory_inode
567 should rcu-free inodes.
568
569 diff --git a/sys-cluster/lustre/lustre-9999.ebuild b/sys-cluster/lustre/lustre-9999.ebuild
570 index 48ce0cf..0b27062 100644
571 --- a/sys-cluster/lustre/lustre-9999.ebuild
572 +++ b/sys-cluster/lustre/lustre-9999.ebuild
573 @@ -30,15 +30,14 @@ DEPEND="
574 RDEPEND="${DEPEND}"
575
576 PATCHES=(
577 - "${FILESDIR}/0000-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch"
578 - "${FILESDIR}/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch"
579 - "${FILESDIR}/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch"
580 - "${FILESDIR}/0003-LU-2800-llite-introduce-local-getname.patch"
581 - "${FILESDIR}/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch"
582 - "${FILESDIR}/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch"
583 - "${FILESDIR}/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch"
584 - "${FILESDIR}/0007-LU-2987-llite-rcu-free-inode.patch"
585 - "${FILESDIR}/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch"
586 + "${FILESDIR}/0001-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch"
587 + "${FILESDIR}/0002-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch"
588 + "${FILESDIR}/0003-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch"
589 + "${FILESDIR}/0004-LU-2800-llite-introduce-local-getname.patch"
590 + "${FILESDIR}/0005-LU-2850-build-check-header-files-in-generated-uapi-d.patch"
591 + "${FILESDIR}/0006-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch"
592 + "${FILESDIR}/0007-LU-2850-kernel-3.8-upstream-kills-daemonize.patch"
593 + "${FILESDIR}/0008-LU-2987-llite-rcu-free-inode.patch"
594 )
595
596 pkg_setup() {