1 |
commit: ce672f91105a825bb21304934c8e50d1052305ba |
2 |
Author: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Mar 27 05:05:33 2013 +0000 |
4 |
Commit: Alexey Shvetsov <alexxy <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Mar 27 05:05:33 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=ce672f91 |
7 |
|
8 |
Update patches |
9 |
|
10 |
Package-Manager: portage-2.2.0_alpha169 |
11 |
RepoMan-Options: --force |
12 |
|
13 |
--- |
14 |
sys-cluster/lustre/ChangeLog | 16 ++++ |
15 |
...fs-use-sock_alloc_file-instead-of-sock_m.patch} | 4 +- |
16 |
...pat-posix_acl_-to-from-_xattr-take-user_n.patch | 12 ++-- |
17 |
...03-LU-2800-llite-introduce-local-getname.patch} | 6 +- |
18 |
...d-check-header-files-in-generated-uapi-d.patch} | 10 +- |
19 |
...50-kernel-3.8-upstream-removes-vmtruncate.patch | 30 +++---- |
20 |
...-2850-kernel-3.8-upstream-kills-daemonize.patch | 93 +++----------------- |
21 |
.../files/0007-LU-2987-llite-rcu-free-inode.patch | 8 +- |
22 |
...nel-3.9-hlist_for_each_entry-uses-3-args.patch} | 0 |
23 |
...ld-fix-unused-uninitilized-virables-error.patch | 30 ------ |
24 |
sys-cluster/lustre/lustre-9999.ebuild | 9 +- |
25 |
11 files changed, 65 insertions(+), 153 deletions(-) |
26 |
|
27 |
diff --git a/sys-cluster/lustre/ChangeLog b/sys-cluster/lustre/ChangeLog |
28 |
index 2853d73..bce1420 100644 |
29 |
--- a/sys-cluster/lustre/ChangeLog |
30 |
+++ b/sys-cluster/lustre/ChangeLog |
31 |
@@ -2,6 +2,22 @@ |
32 |
# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
33 |
# $Header: $ |
34 |
|
35 |
+ 27 Mar 2013; Alexey Shvetsov <alexxy@g.o> |
36 |
+ +files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch, |
37 |
+ +files/0003-LU-2800-llite-introduce-local-getname.patch, |
38 |
+ +files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch, |
39 |
+ +files/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch, |
40 |
+ -files/0001-LU-2850-build-check-header-files-in-generated-uapi-d.patch, |
41 |
+ -files/0003-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch, |
42 |
+ -files/0004-LU-2800-llite-introduce-local-getname.patch, |
43 |
+ -files/0008-LU-2929-build-fix-unused-uninitilized-virables-error.patch, |
44 |
+ -files/0009-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch, |
45 |
+ files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch, |
46 |
+ files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch, |
47 |
+ files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch, |
48 |
+ files/0007-LU-2987-llite-rcu-free-inode.patch, lustre-9999.ebuild: |
49 |
+ Update patches |
50 |
+ |
51 |
22 Mar 2013; Alexey Shvetsov <alexxy@g.o> |
52 |
+files/0008-LU-2929-build-fix-unused-uninitilized-virables-error.patch, |
53 |
+files/0009-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch, |
54 |
|
55 |
diff --git a/sys-cluster/lustre/files/0003-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch b/sys-cluster/lustre/files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch |
56 |
similarity index 96% |
57 |
rename from sys-cluster/lustre/files/0003-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch |
58 |
rename to sys-cluster/lustre/files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch |
59 |
index bc345f5..d776d34 100644 |
60 |
--- a/sys-cluster/lustre/files/0003-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch |
61 |
+++ b/sys-cluster/lustre/files/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch |
62 |
@@ -1,7 +1,7 @@ |
63 |
-From 92aab7a02e1de86cadc46edc81cc9627d3c0887a Mon Sep 17 00:00:00 2001 |
64 |
+From b6d238eff4b7417cb5d5d9882b00c630b6ab2ee1 Mon Sep 17 00:00:00 2001 |
65 |
From: Jeff Mahoney <jeffm@××××.com> |
66 |
Date: Wed, 13 Feb 2013 02:45:16 -0500 |
67 |
-Subject: [PATCH 3/8] LU-2800 libcfs: use sock_alloc_file instead of |
68 |
+Subject: [PATCH 1/7] LU-2800 libcfs: use sock_alloc_file instead of |
69 |
sock_map_fd |
70 |
|
71 |
v2.6.27 added a second argument to sock_map_fd. Earlier versions are |
72 |
|
73 |
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/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch |
74 |
index 23969a6..de2178c 100644 |
75 |
--- a/sys-cluster/lustre/files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch |
76 |
+++ b/sys-cluster/lustre/files/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch |
77 |
@@ -1,7 +1,7 @@ |
78 |
-From 8153aab75bd9d96af36df0d8eafbe6b3eac45e1c Mon Sep 17 00:00:00 2001 |
79 |
+From 66f494869c183a010a40397221e55c625e5d2e8b Mon Sep 17 00:00:00 2001 |
80 |
From: Jeff Mahoney <jeffm@××××.com> |
81 |
Date: Wed, 20 Mar 2013 17:33:17 -0400 |
82 |
-Subject: [PATCH 2/8] LU-2850 compat: posix_acl_{to,from}_xattr take |
83 |
+Subject: [PATCH 2/7] LU-2850 compat: posix_acl_{to,from}_xattr take |
84 |
user_namespace |
85 |
|
86 |
Commit 5f3a4a28 (v3.7) added a struct user_namespace argument to |
87 |
@@ -67,10 +67,10 @@ index 53975ab..fa4e4d4 100644 |
88 |
+#endif |
89 |
#endif |
90 |
diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 |
91 |
-index 3c773e8..fee7abc 100644 |
92 |
+index 601155c..125bde7 100644 |
93 |
--- a/lustre/autoconf/lustre-core.m4 |
94 |
+++ b/lustre/autoconf/lustre-core.m4 |
95 |
-@@ -2213,6 +2213,25 @@ LB_LINUX_TRY_COMPILE([ |
96 |
+@@ -2233,6 +2233,25 @@ LB_LINUX_TRY_COMPILE([ |
97 |
]) |
98 |
|
99 |
# |
100 |
@@ -96,7 +96,7 @@ index 3c773e8..fee7abc 100644 |
101 |
# LC_PROG_LINUX |
102 |
# |
103 |
# Lustre linux kernel checks |
104 |
-@@ -2391,6 +2410,8 @@ AC_DEFUN([LC_PROG_LINUX], |
105 |
+@@ -2414,6 +2433,8 @@ AC_DEFUN([LC_PROG_LINUX], |
106 |
LC_DENTRY_OPEN_USE_PATH |
107 |
LC_HAVE_IOP_ATOMIC_OPEN |
108 |
|
109 |
@@ -134,7 +134,7 @@ index 24a89eb..9575739 100644 |
110 |
RETURN(rc); |
111 |
} |
112 |
diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c |
113 |
-index 9fc8e51..a7b6d4a 100644 |
114 |
+index fd087a5..d67db9d 100644 |
115 |
--- a/lustre/mdc/mdc_request.c |
116 |
+++ b/lustre/mdc/mdc_request.c |
117 |
@@ -41,6 +41,7 @@ |
118 |
|
119 |
diff --git a/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch b/sys-cluster/lustre/files/0003-LU-2800-llite-introduce-local-getname.patch |
120 |
similarity index 94% |
121 |
rename from sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch |
122 |
rename to sys-cluster/lustre/files/0003-LU-2800-llite-introduce-local-getname.patch |
123 |
index c8e0015..18fd7cf 100644 |
124 |
--- a/sys-cluster/lustre/files/0004-LU-2800-llite-introduce-local-getname.patch |
125 |
+++ b/sys-cluster/lustre/files/0003-LU-2800-llite-introduce-local-getname.patch |
126 |
@@ -1,7 +1,7 @@ |
127 |
-From b0dfb2b6916017d659cae52a28f5a86341b4c97f Mon Sep 17 00:00:00 2001 |
128 |
+From f56dde4b75bf7cddf7c6da1ebdda3000b4f4c284 Mon Sep 17 00:00:00 2001 |
129 |
From: Jeff Mahoney <jeffm@××××.com> |
130 |
Date: Tue, 19 Mar 2013 21:18:32 -0400 |
131 |
-Subject: [PATCH 4/8] LU-2800 llite: introduce local getname() |
132 |
+Subject: [PATCH 3/7] LU-2800 llite: introduce local getname() |
133 |
|
134 |
Commit 8e377d15 (v3.7) unexported getname and putname. Although |
135 |
getname was re-exported, putname was not. All we really need is |
136 |
@@ -16,7 +16,7 @@ Change-Id: If44cd9f9d14f26f220d5f0c52e8b804a49d3cf92 |
137 |
1 file changed, 28 insertions(+), 4 deletions(-) |
138 |
|
139 |
diff --git a/lustre/llite/dir.c b/lustre/llite/dir.c |
140 |
-index a3a514c..3983ef0 100644 |
141 |
+index 493996d..14ea720 100644 |
142 |
--- a/lustre/llite/dir.c |
143 |
+++ b/lustre/llite/dir.c |
144 |
@@ -1227,6 +1227,30 @@ out: |
145 |
|
146 |
diff --git a/sys-cluster/lustre/files/0001-LU-2850-build-check-header-files-in-generated-uapi-d.patch b/sys-cluster/lustre/files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch |
147 |
similarity index 97% |
148 |
rename from sys-cluster/lustre/files/0001-LU-2850-build-check-header-files-in-generated-uapi-d.patch |
149 |
rename to sys-cluster/lustre/files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch |
150 |
index 508cebf..83aca65 100644 |
151 |
--- a/sys-cluster/lustre/files/0001-LU-2850-build-check-header-files-in-generated-uapi-d.patch |
152 |
+++ b/sys-cluster/lustre/files/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch |
153 |
@@ -1,7 +1,7 @@ |
154 |
-From b97f4190c2347410737c5b6698773c17f714f5ec Mon Sep 17 00:00:00 2001 |
155 |
+From 9960d414ad44b844306dd5aa82d4e8aabbb68261 Mon Sep 17 00:00:00 2001 |
156 |
From: Peng Tao <tao.peng@×××.com> |
157 |
Date: Wed, 27 Feb 2013 18:29:34 +0800 |
158 |
-Subject: [PATCH 1/8] LU-2850 build: check header files in generated uapi dir |
159 |
+Subject: [PATCH 4/7] LU-2850 build: check header files in generated uapi dir |
160 |
|
161 |
Upstream moved UAPI headers into generated/uapi directory since |
162 |
v3.7. We need to check/include necessary header files there. |
163 |
@@ -30,7 +30,7 @@ index 8a259bc..6cc5f6d 100644 |
164 |
include/config/MARKER $@ |
165 |
endif # LINUX |
166 |
diff --git a/build/autoconf/lustre-build-linux.m4 b/build/autoconf/lustre-build-linux.m4 |
167 |
-index 4c0a581..0873c05 100644 |
168 |
+index ec77262..5c7c227 100644 |
169 |
--- a/build/autoconf/lustre-build-linux.m4 |
170 |
+++ b/build/autoconf/lustre-build-linux.m4 |
171 |
@@ -44,7 +44,7 @@ AC_MSG_CHECKING([for Linux release]) |
172 |
@@ -73,7 +73,7 @@ index 4c0a581..0873c05 100644 |
173 |
# This is a clean kernel-source tree, we need to |
174 |
# enable extensive workarounds to get this to build |
175 |
# modules |
176 |
-@@ -350,7 +352,7 @@ $2 |
177 |
+@@ -312,7 +314,7 @@ $2 |
178 |
AC_DEFUN([LB_LINUX_COMPILE_IFELSE], |
179 |
[m4_ifvaln([$1], [AC_LANG_CONFTEST([$1])])dnl |
180 |
rm -f build/conftest.o build/conftest.mod.c build/conftest.ko |
181 |
@@ -132,7 +132,7 @@ index fd0f6d2..d657399 100644 |
182 |
# enable extensive workarounds to get this to build |
183 |
# modules |
184 |
diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 |
185 |
-index 08f5e29..3c773e8 100644 |
186 |
+index 125bde7..5b82ff8 100644 |
187 |
--- a/lustre/autoconf/lustre-core.m4 |
188 |
+++ b/lustre/autoconf/lustre-core.m4 |
189 |
@@ -319,7 +319,7 @@ AC_DEFUN([LC_BIT_SPINLOCK_H], |
190 |
|
191 |
diff --git a/sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch b/sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch |
192 |
index 7be9486..1222d02 100644 |
193 |
--- a/sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch |
194 |
+++ b/sys-cluster/lustre/files/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch |
195 |
@@ -1,24 +1,23 @@ |
196 |
-From 6ef5ad16aba6cd3ddaf5e27e9b709a38c3ea3c2b Mon Sep 17 00:00:00 2001 |
197 |
-From: Peng Tao <tao.peng@×××.com> |
198 |
-Date: Tue, 26 Feb 2013 18:09:42 +0800 |
199 |
-Subject: [PATCH 5/8] LU-2850 kernel: 3.8 upstream removes vmtruncate() |
200 |
+From 043935d6e6e3ac7d988ef809cd7c16233fb8be65 Mon Sep 17 00:00:00 2001 |
201 |
+From: Alexey Shvetsov <alexxy@g.o> |
202 |
+Date: Wed, 27 Mar 2013 08:49:01 +0400 |
203 |
+Subject: [PATCH 5/7] LU-2850 kernel: 3.8 upstream removes vmtruncate() |
204 |
|
205 |
vmtruncate() is removed since upstream commit b9f61c3. |
206 |
We can open code is for llite though. |
207 |
|
208 |
Signed-off-by: Peng Tao <tao.peng@×××.com> |
209 |
Change-Id: I9d4f43a5c181f16482b4caa021ba7a09ee52b600 |
210 |
-Signed-off-by: Alexey Shvetsov <alexxy@g.o> |
211 |
--- |
212 |
- lustre/autoconf/lustre-core.m4 | 24 ++++++++++++++++++++++++ |
213 |
- lustre/llite/vvp_io.c | 10 +++++++++- |
214 |
- 2 files changed, 33 insertions(+), 1 deletion(-) |
215 |
+ lustre/autoconf/lustre-core.m4 | 23 +++++++++++++++++++++++ |
216 |
+ lustre/llite/vvp_io.c | 9 +++++++++ |
217 |
+ 2 files changed, 32 insertions(+) |
218 |
|
219 |
diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 |
220 |
-index fee7abc..3e4bfdc 100644 |
221 |
+index 5b82ff8..d736343 100644 |
222 |
--- a/lustre/autoconf/lustre-core.m4 |
223 |
+++ b/lustre/autoconf/lustre-core.m4 |
224 |
-@@ -2232,6 +2232,26 @@ LB_LINUX_TRY_COMPILE([ |
225 |
+@@ -2252,6 +2252,25 @@ LB_LINUX_TRY_COMPILE([ |
226 |
]) |
227 |
|
228 |
# |
229 |
@@ -40,12 +39,11 @@ index fee7abc..3e4bfdc 100644 |
230 |
+]) |
231 |
+]) |
232 |
+ |
233 |
-+ |
234 |
+# |
235 |
# LC_PROG_LINUX |
236 |
# |
237 |
# Lustre linux kernel checks |
238 |
-@@ -2412,6 +2432,10 @@ AC_DEFUN([LC_PROG_LINUX], |
239 |
+@@ -2435,6 +2454,10 @@ AC_DEFUN([LC_PROG_LINUX], |
240 |
|
241 |
# 3.7 |
242 |
LC_HAVE_POSIXACL_USER_NS |
243 |
@@ -57,10 +55,10 @@ index fee7abc..3e4bfdc 100644 |
244 |
if test x$enable_server = xyes ; then |
245 |
AC_DEFINE(HAVE_SERVER_SUPPORT, 1, [support server]) |
246 |
diff --git a/lustre/llite/vvp_io.c b/lustre/llite/vvp_io.c |
247 |
-index db53842..aef8e4b 100644 |
248 |
+index db53842..c261429 100644 |
249 |
--- a/lustre/llite/vvp_io.c |
250 |
+++ b/lustre/llite/vvp_io.c |
251 |
-@@ -362,9 +362,17 @@ static int vvp_do_vmtruncate(struct inode *inode, size_t size) |
252 |
+@@ -362,7 +362,16 @@ static int vvp_do_vmtruncate(struct inode *inode, size_t size) |
253 |
* Only ll_inode_size_lock is taken at this level. |
254 |
*/ |
255 |
ll_inode_size_lock(inode); |
256 |
@@ -75,10 +73,8 @@ index db53842..aef8e4b 100644 |
257 |
+ truncate_setsize(inode, size); |
258 |
+#endif |
259 |
ll_inode_size_unlock(inode); |
260 |
-- |
261 |
- return result; |
262 |
- } |
263 |
|
264 |
+ return result; |
265 |
-- |
266 |
1.8.1.5 |
267 |
|
268 |
|
269 |
diff --git a/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch b/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch |
270 |
index 7ff6418..4f4e3ca 100644 |
271 |
--- a/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch |
272 |
+++ b/sys-cluster/lustre/files/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch |
273 |
@@ -1,14 +1,19 @@ |
274 |
-From 728e7f60624f777c2629cda04305eeaea9a59d04 Mon Sep 17 00:00:00 2001 |
275 |
+From 089c9fcca75da19ea13215925fc2cfb83d5dddb4 Mon Sep 17 00:00:00 2001 |
276 |
From: Peng Tao <tao.peng@×××.com> |
277 |
Date: Mon, 18 Mar 2013 10:47:57 +0800 |
278 |
-Subject: [PATCH 6/8] LU-2850 kernel: 3.8 upstream kills daemonize() |
279 |
+Subject: [PATCH 6/7] LU-2850 kernel: 3.8 upstream kills daemonize() |
280 |
|
281 |
kernel_thread() is a low level kernel function. |
282 |
Instead of calling kernel_thread() and relying on daemonize() |
283 |
to create new kernel threads, we should really switch to |
284 |
kthread_run() and elimilate daemonize(). |
285 |
|
286 |
+Conflicts: |
287 |
+ lustre/obdclass/llog_cat.c |
288 |
+ lustre/ptlrpc/recov_thread.c |
289 |
+ |
290 |
Signed-off-by: Peng Tao <tao.peng@×××.com> |
291 |
+Signed-off-by: Alexey Shvetsov <alexxy@g.o> |
292 |
Change-Id: I9f977bfc5d58192957d8c8d634204f4910edfa2a |
293 |
--- |
294 |
libcfs/autoconf/lustre-libcfs.m4 | 28 ----------- |
295 |
@@ -68,20 +73,18 @@ Change-Id: I9f977bfc5d58192957d8c8d634204f4910edfa2a |
296 |
lustre/mgs/mgs_nids.c | 13 ++--- |
297 |
lustre/obdclass/genops.c | 22 +++----- |
298 |
lustre/obdclass/llog.c | 8 +-- |
299 |
- lustre/obdclass/llog_cat.c | 2 +- |
300 |
lustre/osd-ldiskfs/osd_scrub.c | 5 +- |
301 |
lustre/osp/osp_precreate.c | 15 +++--- |
302 |
lustre/osp/osp_sync.c | 9 ++-- |
303 |
lustre/ptlrpc/import.c | 34 +++++++------ |
304 |
lustre/ptlrpc/pinger.c | 39 +++++++------- |
305 |
lustre/ptlrpc/ptlrpcd.c | 25 +++++---- |
306 |
- lustre/ptlrpc/recov_thread.c | 40 ++++++++------- |
307 |
lustre/ptlrpc/sec_gc.c | 12 ++--- |
308 |
lustre/ptlrpc/service.c | 19 ++++--- |
309 |
lustre/quota/qmt_lock.c | 17 +++---- |
310 |
lustre/quota/qsd_reint.c | 6 +-- |
311 |
lustre/quota/qsd_writeback.c | 16 +++--- |
312 |
- 70 files changed, 536 insertions(+), 773 deletions(-) |
313 |
+ 68 files changed, 514 insertions(+), 753 deletions(-) |
314 |
delete mode 100644 libcfs/libcfs/linux/linux-lwt.c |
315 |
|
316 |
diff --git a/libcfs/autoconf/lustre-libcfs.m4 b/libcfs/autoconf/lustre-libcfs.m4 |
317 |
@@ -2205,10 +2208,10 @@ index 9eea49e..cb11191 100644 |
318 |
thread_set_flags(thread, SVC_STOPPED); |
319 |
thread_set_flags(&sai->sai_agl_thread, SVC_STOPPED); |
320 |
diff --git a/lustre/mdc/mdc_request.c b/lustre/mdc/mdc_request.c |
321 |
-index a7b6d4a..7960645 100644 |
322 |
+index d67db9d..cf4c46c 100644 |
323 |
--- a/lustre/mdc/mdc_request.c |
324 |
+++ b/lustre/mdc/mdc_request.c |
325 |
-@@ -1553,13 +1553,6 @@ static int mdc_changelog_send_thread(void *csdata) |
326 |
+@@ -1567,13 +1567,6 @@ static int mdc_changelog_send_thread(void *csdata) |
327 |
CDEBUG(D_CHANGELOG, "changelog to fp=%p start "LPU64"\n", |
328 |
cs->cs_fp, cs->cs_startrec); |
329 |
|
330 |
@@ -2222,7 +2225,7 @@ index a7b6d4a..7960645 100644 |
331 |
OBD_ALLOC(cs->cs_buf, CR_MAXSIZE); |
332 |
if (cs->cs_buf == NULL) |
333 |
GOTO(out, rc = -ENOMEM); |
334 |
-@@ -1596,12 +1589,10 @@ out: |
335 |
+@@ -1610,12 +1603,10 @@ out: |
336 |
llog_cat_close(NULL, llh); |
337 |
if (ctxt) |
338 |
llog_ctxt_put(ctxt); |
339 |
@@ -2239,7 +2242,7 @@ index a7b6d4a..7960645 100644 |
340 |
} |
341 |
|
342 |
static int mdc_ioc_changelog_send(struct obd_device *obd, |
343 |
-@@ -1621,13 +1612,16 @@ static int mdc_ioc_changelog_send(struct obd_device *obd, |
344 |
+@@ -1635,13 +1626,16 @@ static int mdc_ioc_changelog_send(struct obd_device *obd, |
345 |
cs->cs_fp = fget(icc->icc_id); |
346 |
cs->cs_flags = icc->icc_flags; |
347 |
|
348 |
@@ -2502,19 +2505,6 @@ index f08fd6e..ce22932 100644 |
349 |
CERROR("%s: cannot start thread: rc = %d\n", |
350 |
loghandle->lgh_ctxt->loc_obd->obd_name, rc); |
351 |
OBD_FREE_PTR(lpi); |
352 |
-diff --git a/lustre/obdclass/llog_cat.c b/lustre/obdclass/llog_cat.c |
353 |
-index fbf2766..7945237 100644 |
354 |
---- a/lustre/obdclass/llog_cat.c |
355 |
-+++ b/lustre/obdclass/llog_cat.c |
356 |
-@@ -647,7 +647,7 @@ int llog_cat_process_thread(void *data) |
357 |
- int rc; |
358 |
- ENTRY; |
359 |
- |
360 |
-- cfs_daemonize_ctxt("ll_log_process"); |
361 |
-+ unshare_fs_struct(); |
362 |
- |
363 |
- rc = lu_env_init(&env, LCT_LOCAL); |
364 |
- if (rc) |
365 |
diff --git a/lustre/osd-ldiskfs/osd_scrub.c b/lustre/osd-ldiskfs/osd_scrub.c |
366 |
index 3736410..8d53834 100644 |
367 |
--- a/lustre/osd-ldiskfs/osd_scrub.c |
368 |
@@ -2788,65 +2778,6 @@ index 669b0d7..b6486e0 100644 |
369 |
#else |
370 |
pc->pc_wait_callback = |
371 |
liblustre_register_wait_callback("ptlrpcd_check_async_rpcs", |
372 |
-diff --git a/lustre/ptlrpc/recov_thread.c b/lustre/ptlrpc/recov_thread.c |
373 |
-index dee77cd..7b5738f 100644 |
374 |
---- a/lustre/ptlrpc/recov_thread.c |
375 |
-+++ b/lustre/ptlrpc/recov_thread.c |
376 |
-@@ -513,10 +513,11 @@ EXPORT_SYMBOL(llog_recov_thread_fini); |
377 |
- static int llog_recov_thread_replay(struct llog_ctxt *ctxt, |
378 |
- void *cb, void *arg) |
379 |
- { |
380 |
-- struct obd_device *obd = ctxt->loc_obd; |
381 |
-- struct llog_process_cat_args *lpca; |
382 |
-- int rc; |
383 |
-- ENTRY; |
384 |
-+ struct obd_device *obd = ctxt->loc_obd; |
385 |
-+ struct llog_process_cat_args *lpca; |
386 |
-+ cfs_task_t *task; |
387 |
-+ int rc; |
388 |
-+ ENTRY; |
389 |
- |
390 |
- if (obd->obd_stopping) |
391 |
- RETURN(-ENODEV); |
392 |
-@@ -534,22 +535,23 @@ static int llog_recov_thread_replay(struct llog_ctxt *ctxt, |
393 |
- /* |
394 |
- * This will be balanced in llog_cat_process_thread() |
395 |
- */ |
396 |
-- lpca->lpca_ctxt = llog_ctxt_get(ctxt); |
397 |
-- if (!lpca->lpca_ctxt) { |
398 |
-- OBD_FREE_PTR(lpca); |
399 |
-- RETURN(-ENODEV); |
400 |
-- } |
401 |
-- rc = cfs_create_thread(llog_cat_process_thread, lpca, CFS_DAEMON_FLAGS); |
402 |
-- if (rc < 0) { |
403 |
-- CERROR("Error starting llog_cat_process_thread(): %d\n", rc); |
404 |
-- OBD_FREE_PTR(lpca); |
405 |
-- llog_ctxt_put(ctxt); |
406 |
-- } else { |
407 |
-- CDEBUG(D_HA, "Started llog_cat_process_thread(): %d\n", rc); |
408 |
-- rc = 0; |
409 |
-- } |
410 |
-+ lpca->lpca_ctxt = llog_ctxt_get(ctxt); |
411 |
-+ if (!lpca->lpca_ctxt) { |
412 |
-+ OBD_FREE_PTR(lpca); |
413 |
-+ RETURN(-ENODEV); |
414 |
-+ } |
415 |
-+ task = kthread_run(llog_cat_process_thread, lpca, "ll_log_process"); |
416 |
-+ if (IS_ERR(task)) { |
417 |
-+ rc = PTR_ERR(task); |
418 |
-+ CERROR("Error starting llog_cat_process_thread(): %d\n", rc); |
419 |
-+ OBD_FREE_PTR(lpca); |
420 |
-+ llog_ctxt_put(ctxt); |
421 |
-+ } else { |
422 |
-+ CDEBUG(D_HA, "Started llog_cat_process_thread()\n"); |
423 |
-+ rc = 0; |
424 |
-+ } |
425 |
- |
426 |
-- RETURN(rc); |
427 |
-+ RETURN(rc); |
428 |
- } |
429 |
- |
430 |
- int llog_obd_repl_connect(struct llog_ctxt *ctxt, |
431 |
diff --git a/lustre/ptlrpc/sec_gc.c b/lustre/ptlrpc/sec_gc.c |
432 |
index 7634d22..595f710 100644 |
433 |
--- a/lustre/ptlrpc/sec_gc.c |
434 |
|
435 |
diff --git a/sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch b/sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch |
436 |
index de4c649..0055d26 100644 |
437 |
--- a/sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch |
438 |
+++ b/sys-cluster/lustre/files/0007-LU-2987-llite-rcu-free-inode.patch |
439 |
@@ -1,7 +1,7 @@ |
440 |
-From acba951ab52918a0b5d247e9dac561f8ae70aa18 Mon Sep 17 00:00:00 2001 |
441 |
+From c38a8fce9d43a0b188360d504adc3cac7ae775c4 Mon Sep 17 00:00:00 2001 |
442 |
From: Peng Tao <tao.peng@×××.com> |
443 |
Date: Tue, 19 Mar 2013 14:04:47 +0800 |
444 |
-Subject: [PATCH 7/8] LU-2987 llite: rcu-free inode |
445 |
+Subject: [PATCH 7/7] LU-2987 llite: rcu-free inode |
446 |
|
447 |
Since 2.6.38, inode.i_rcu was added and file system .destory_inode |
448 |
should rcu-free inodes. |
449 |
@@ -14,7 +14,7 @@ Change-Id: Idc12c94fd1bf9c99756c9bcb2d07f3061e6dad5a |
450 |
2 files changed, 37 insertions(+), 2 deletions(-) |
451 |
|
452 |
diff --git a/lustre/autoconf/lustre-core.m4 b/lustre/autoconf/lustre-core.m4 |
453 |
-index 3e4bfdc..78dbe99 100644 |
454 |
+index d736343..4e90e86 100644 |
455 |
--- a/lustre/autoconf/lustre-core.m4 |
456 |
+++ b/lustre/autoconf/lustre-core.m4 |
457 |
@@ -1682,6 +1682,26 @@ LB_LINUX_TRY_COMPILE([ |
458 |
@@ -44,7 +44,7 @@ index 3e4bfdc..78dbe99 100644 |
459 |
# 2.6.38 export blkdev_get_by_dev |
460 |
# |
461 |
AC_DEFUN([LC_BLKDEV_GET_BY_DEV], |
462 |
-@@ -2389,6 +2409,7 @@ AC_DEFUN([LC_PROG_LINUX], |
463 |
+@@ -2408,6 +2428,7 @@ AC_DEFUN([LC_PROG_LINUX], |
464 |
LC_GENERIC_PERMISSION |
465 |
LC_QUOTA_ON_USE_PATH |
466 |
LC_DCACHE_LOCK |
467 |
|
468 |
diff --git a/sys-cluster/lustre/files/0009-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 |
469 |
similarity index 100% |
470 |
rename from sys-cluster/lustre/files/0009-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch |
471 |
rename to sys-cluster/lustre/files/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch |
472 |
|
473 |
diff --git a/sys-cluster/lustre/files/0008-LU-2929-build-fix-unused-uninitilized-virables-error.patch b/sys-cluster/lustre/files/0008-LU-2929-build-fix-unused-uninitilized-virables-error.patch |
474 |
deleted file mode 100644 |
475 |
index 04603cf..0000000 |
476 |
--- a/sys-cluster/lustre/files/0008-LU-2929-build-fix-unused-uninitilized-virables-error.patch |
477 |
+++ /dev/null |
478 |
@@ -1,30 +0,0 @@ |
479 |
-From f18c8e7cd37a4208fd5c96e149d78c7249edb7e2 Mon Sep 17 00:00:00 2001 |
480 |
-From: James Simmons <uja.ornl@×××××.com> |
481 |
-Date: Tue, 12 Mar 2013 14:32:19 -0400 |
482 |
-Subject: [PATCH 8/8] LU-2929 build: fix unused/uninitilized virables error |
483 |
- |
484 |
-As reported by gcc (GCC) 4.6.3 20120306 (Red Hat 4.6.3-2). |
485 |
- |
486 |
-Signed-off-by: Peng Tao <tao.peng@×××.com> |
487 |
-Signed-off-by: James Simmons <uja.ornl@×××××.com> |
488 |
-Change-Id: I05aeb88dbd00b6b005ddde543a527339a9d66ce0 |
489 |
---- |
490 |
- lustre/mdt/mdt_handler.c | 2 ++ |
491 |
- 1 file changed, 2 insertions(+) |
492 |
- |
493 |
-diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c |
494 |
-index c5293ec..f7ed271 100644 |
495 |
---- a/lustre/mdt/mdt_handler.c |
496 |
-+++ b/lustre/mdt/mdt_handler.c |
497 |
-@@ -5703,6 +5703,8 @@ static int mdt_fid2path(struct mdt_thread_info *info, |
498 |
- rc = -EREMOTE; |
499 |
- else if (!mdt_object_exists(obj)) |
500 |
- rc = -ENOENT; |
501 |
-+ else |
502 |
-+ rc = 0; |
503 |
- |
504 |
- if (rc < 0) { |
505 |
- mdt_object_put(info->mti_env, obj); |
506 |
--- |
507 |
-1.8.1.5 |
508 |
- |
509 |
|
510 |
diff --git a/sys-cluster/lustre/lustre-9999.ebuild b/sys-cluster/lustre/lustre-9999.ebuild |
511 |
index 9a93eff..48ce0cf 100644 |
512 |
--- a/sys-cluster/lustre/lustre-9999.ebuild |
513 |
+++ b/sys-cluster/lustre/lustre-9999.ebuild |
514 |
@@ -31,15 +31,14 @@ RDEPEND="${DEPEND}" |
515 |
|
516 |
PATCHES=( |
517 |
"${FILESDIR}/0000-LU-2982-build-make-AC-check-for-linux-arch-sandbox-f.patch" |
518 |
- "${FILESDIR}/0001-LU-2850-build-check-header-files-in-generated-uapi-d.patch" |
519 |
+ "${FILESDIR}/0001-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch" |
520 |
"${FILESDIR}/0002-LU-2850-compat-posix_acl_-to-from-_xattr-take-user_n.patch" |
521 |
- "${FILESDIR}/0003-LU-2800-libcfs-use-sock_alloc_file-instead-of-sock_m.patch" |
522 |
- "${FILESDIR}/0004-LU-2800-llite-introduce-local-getname.patch" |
523 |
+ "${FILESDIR}/0003-LU-2800-llite-introduce-local-getname.patch" |
524 |
+ "${FILESDIR}/0004-LU-2850-build-check-header-files-in-generated-uapi-d.patch" |
525 |
"${FILESDIR}/0005-LU-2850-kernel-3.8-upstream-removes-vmtruncate.patch" |
526 |
"${FILESDIR}/0006-LU-2850-kernel-3.8-upstream-kills-daemonize.patch" |
527 |
"${FILESDIR}/0007-LU-2987-llite-rcu-free-inode.patch" |
528 |
- "${FILESDIR}/0008-LU-2929-build-fix-unused-uninitilized-virables-error.patch" |
529 |
- "${FILESDIR}/0009-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch" |
530 |
+ "${FILESDIR}/0008-LU-2850-kernel-3.9-hlist_for_each_entry-uses-3-args.patch" |
531 |
) |
532 |
|
533 |
pkg_setup() { |