1 |
commit: ca793a2ebb05158b6c4f6975771c3a18d1e77d99 |
2 |
Author: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 12 16:31:58 2017 +0000 |
4 |
Commit: Jonathan Vasquez <fearedbliss <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 12 16:32:19 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca793a2e |
7 |
|
8 |
sys-kernel/spl: removing unused patches |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
...0.6.0_rc9-alias-km-sleep-with-km-pushpage.patch | 56 ---------------------- |
13 |
1 file changed, 56 deletions(-) |
14 |
|
15 |
diff --git a/sys-kernel/spl/files/spl-0.6.0_rc9-alias-km-sleep-with-km-pushpage.patch b/sys-kernel/spl/files/spl-0.6.0_rc9-alias-km-sleep-with-km-pushpage.patch |
16 |
deleted file mode 100644 |
17 |
index fb0e5914e7..0000000000 |
18 |
--- a/sys-kernel/spl/files/spl-0.6.0_rc9-alias-km-sleep-with-km-pushpage.patch |
19 |
+++ /dev/null |
20 |
@@ -1,56 +0,0 @@ |
21 |
-From 5c072b45b66e841ebc7952db7860c2ee7b024b08 Mon Sep 17 00:00:00 2001 |
22 |
-From: Richard Yao <ryao@×××××××××××××.edu> |
23 |
-Date: Mon, 25 Jun 2012 20:05:00 -0400 |
24 |
-Subject: [PATCH] Make KM_SLEEP an alias of KM_PUSHPAGE Use GFP_NOIO in |
25 |
- KM_SLEEP |
26 |
- |
27 |
-This should prevent direct reclaim issues without requiring |
28 |
-Linux-specific changes to code from Solaris. This is what is done in |
29 |
-FreeBSD. |
30 |
- |
31 |
-Note that a change to __taskq_dispatch() module/spl/spl-taskq.c is |
32 |
-needed to make this work. Changing KM_PUSHPAGE to use GFP_NOIO is fine, |
33 |
-but adding __GFP_HIGH to that triggers a hard-coded panic in |
34 |
-__taskq_dispatch() during zvol initialization. Removing the hard coded |
35 |
-panic has no ill effects. |
36 |
- |
37 |
-Signed-off-by: Richard Yao <ryao@×××××××××××××.edu> |
38 |
---- |
39 |
- include/sys/kmem.h | 2 +- |
40 |
- module/spl/spl-taskq.c | 7 ++++--- |
41 |
- 2 files changed, 5 insertions(+), 4 deletions(-) |
42 |
- |
43 |
-diff --git a/include/sys/kmem.h b/include/sys/kmem.h |
44 |
-index 796af44..633278b 100644 |
45 |
---- a/include/sys/kmem.h |
46 |
-+++ b/include/sys/kmem.h |
47 |
-@@ -41,7 +41,7 @@ |
48 |
- /* |
49 |
- * Memory allocation interfaces |
50 |
- */ |
51 |
--#define KM_SLEEP GFP_KERNEL /* Can sleep, never fails */ |
52 |
-+#define KM_SLEEP (GFP_NOIO | __GFP_HIGH) /* Can sleep, never fails */ |
53 |
- #define KM_NOSLEEP GFP_ATOMIC /* Can not sleep, may fail */ |
54 |
- #define KM_PUSHPAGE (GFP_NOIO | __GFP_HIGH) /* Use reserved memory */ |
55 |
- #define KM_NODEBUG __GFP_NOWARN /* Suppress warnings */ |
56 |
-diff --git a/module/spl/spl-taskq.c b/module/spl/spl-taskq.c |
57 |
-index 0c546c7..5ab387e 100644 |
58 |
---- a/module/spl/spl-taskq.c |
59 |
-+++ b/module/spl/spl-taskq.c |
60 |
-@@ -255,9 +255,10 @@ |
61 |
- if (!(flags & (TQ_SLEEP | TQ_NOSLEEP))) |
62 |
- flags |= TQ_SLEEP; |
63 |
- |
64 |
-- if (unlikely(in_atomic() && (flags & TQ_SLEEP))) |
65 |
-- PANIC("May schedule while atomic: %s/0x%08x/%d\n", |
66 |
-- current->comm, preempt_count(), current->pid); |
67 |
-+ /* FIXME: Why does this fail when KM_SLEEP contains __GFP_HIGHMEM? */ |
68 |
-+ //if (unlikely(in_atomic() && (flags & TQ_SLEEP))) |
69 |
-+ // PANIC("May schedule while atomic: %s/0x%08x/%d\n", |
70 |
-+ // current->comm, preempt_count(), current->pid); |
71 |
- |
72 |
- spin_lock_irqsave(&tq->tq_lock, tq->tq_lock_flags); |
73 |
- |
74 |
--- |
75 |
-1.7.10 |
76 |
- |