Discussion:
Fix missing refrigerator invocation in jffs2.
Nigel Cunningham
2005-07-18 04:14:53 UTC
Permalink
Hi.

Here's a patch to fix a missing refrigerator call in jffs2.

Regards,

Nigel

Signed-off by: Nigel Cunningham <***@suspend2.net>

intrep.c | 3 +++
1 files changed, 3 insertions(+)
diff -ruNp 235-jffs-intrep.patch-old/fs/jffs/intrep.c 235-jffs-intrep.patch-new/fs/jffs/intrep.c
--- 235-jffs-intrep.patch-old/fs/jffs/intrep.c 2005-07-18 06:36:59.000000000 +1000
+++ 235-jffs-intrep.patch-new/fs/jffs/intrep.c 2005-07-18 14:02:27.000000000 +1000
@@ -3397,6 +3397,9 @@ jffs_garbage_collect_thread(void *ptr)
siginfo_t info;
unsigned long signr = 0;

+ if (try_to_freeze())
+ continue;
+
spin_lock_irq(&current->sighand->siglock);
signr = dequeue_signal(current, &current->blocked, &info);
spin_unlock_irq(&current->sighand->siglock);
--
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened.
Jörn Engel
2005-07-18 18:18:55 UTC
Permalink
Post by Nigel Cunningham
=20
Here's a patch to fix a missing refrigerator call in jffs2.
^
You should shorten the description by one letter, roughly. ;)
Post by Nigel Cunningham
=20
=20
intrep.c | 3 +++
1 files changed, 3 insertions(+)
diff -ruNp 235-jffs-intrep.patch-old/fs/jffs/intrep.c 235-jffs-intrep=
=2Epatch-new/fs/jffs/intrep.c
Post by Nigel Cunningham
--- 235-jffs-intrep.patch-old/fs/jffs/intrep.c 2005-07-18 06:36:59.00=
0000000 +1000
Post by Nigel Cunningham
+++ 235-jffs-intrep.patch-new/fs/jffs/intrep.c 2005-07-18 14:02:27.00=
0000000 +1000
Post by Nigel Cunningham
@@ -3397,6 +3397,9 @@ jffs_garbage_collect_thread(void *ptr)
siginfo_t info;
unsigned long signr =3D 0;
=20
+ if (try_to_freeze())
+ continue;
+
spin_lock_irq(&current->sighand->siglock);
signr =3D dequeue_signal(current, &current->blocked, &info);
spin_unlock_irq(&current->sighand->siglock);
=20
--=20
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened.=20
=20
-
To unsubscribe from this list: send the line "unsubscribe linux-kerne=
l" in
Post by Nigel Cunningham
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
J=F6rn

--=20
A quarrel is quickly settled when deserted by one party; there is
no battle unless there be two.
-- Seneca
Nigel Cunningham
2005-07-19 12:13:01 UTC
Permalink
Hi.
Post by Jörn Engel
Post by Nigel Cunningham
=20
Here's a patch to fix a missing refrigerator call in jffs2.
^
You should shorten the description by one letter, roughly. ;)
Oh oops! Sorry!

Nigel
Post by Jörn Engel
Post by Nigel Cunningham
=20
=20
intrep.c | 3 +++
1 files changed, 3 insertions(+)
diff -ruNp 235-jffs-intrep.patch-old/fs/jffs/intrep.c 235-jffs-intr=
ep.patch-new/fs/jffs/intrep.c
Post by Jörn Engel
Post by Nigel Cunningham
--- 235-jffs-intrep.patch-old/fs/jffs/intrep.c 2005-07-18 06:36:59.=
000000000 +1000
Post by Jörn Engel
Post by Nigel Cunningham
+++ 235-jffs-intrep.patch-new/fs/jffs/intrep.c 2005-07-18 14:02:27.=
000000000 +1000
Post by Jörn Engel
Post by Nigel Cunningham
@@ -3397,6 +3397,9 @@ jffs_garbage_collect_thread(void *ptr)
siginfo_t info;
unsigned long signr =3D 0;
=20
+ if (try_to_freeze())
+ continue;
+
spin_lock_irq(&current->sighand->siglock);
signr =3D dequeue_signal(current, &current->blocked, &info);
spin_unlock_irq(&current->sighand->siglock);
=20
--=20
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened.=20
=20
-
To unsubscribe from this list: send the line "unsubscribe linux-ker=
nel" in
Post by Jörn Engel
Post by Nigel Cunningham
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
=20
J=F6rn
--=20
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.

Loading...