Skip to contentSkip to conversation

Fix missing refrigerator invocation in jffs2.

PATCH Nigel Cunningham 2 participants 3 messages Jul 18, 2005 – Jul 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi.

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

Regards,

Nigel

Signed-off by: Nigel Cunningham <[email protected]>

 intrep.c |    3 +++
 1 files changed, 3 insertions(+)
fs/jffs/intrep.c +3 -0
diff -ruNp 235-jffs-intrep.patch-old/fs/jffs/intrep.c 235-jffs-intrep.patch-new/fs/jffs/intrep.c
@@ -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);
Signature · 5 lines
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened. 
#1 lore raw
Quoted 2 lines · Nigel Cunningham

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

                                                           ^

You should shorten the description by one letter, roughly. ;)

Quoted 31 lines

Signed-off by: Nigel Cunningham <[email protected]>

 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

fs/jffs/intrep.c +3 -0
@@ -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);
Signature · 12 lines
-- 
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened. 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Jörn

Signature · 3 lines
A quarrel is quickly settled when deserted by one party; there is
no battle unless there be two.
-- Seneca
#2 lore raw

Hi.

Quoted 5 lines · Jörn Engel
Quoted 2 lines · Nigel Cunningham

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

Quoted 33 lines
Quoted 31 lines

Signed-off by: Nigel Cunningham <[email protected]>

 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

fs/jffs/intrep.c +3 -0
@@ -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);
Signature · 12 lines
-- 
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.
Be amazed that people believe it happened. 

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Jörn

Signature · 4 lines
Evolution.
Enumerate the requirements.
Consider the interdependencies.
Calculate the probabilities.