* [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment with
@ 2005-06-27 20:59 Victor Fusco
2005-06-28 3:40 ` [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment Nishanth Aravamudan
2005-06-28 10:18 ` Victor Fusco
0 siblings, 2 replies; 3+ messages in thread
From: Victor Fusco @ 2005-06-27 20:59 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 140 bytes --]
description:
Use set_current_state() instead of direct assignment of
current->state.
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: reiserfs_journal_set_current_state.patch --]
[-- Type: text/x-diff, Size: 520 bytes --]
diff -Nru linux-2.6.12/fs/reiserfs/journal.c linux-2.6.12-devel/fs/reiserfs/journal.c
--- linux-2.6.12/fs/reiserfs/journal.c 2005-06-17 19:48:29.000000000 +0000
+++ linux-2.6.12-devel/fs/reiserfs/journal.c 2005-06-27 14:13:59.000000000 +0000
@@ -2584,7 +2584,7 @@
set_current_state(TASK_UNINTERRUPTIBLE);
if (test_bit(J_WRITERS_QUEUED, &journal->j_state))
schedule();
- current->state = TASK_RUNNING;
+ set_current_state(TASK_RUNNING);
remove_wait_queue(&journal->j_join_wait, &wait);
}
[-- Attachment #3: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment
2005-06-27 20:59 [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment with Victor Fusco
@ 2005-06-28 3:40 ` Nishanth Aravamudan
2005-06-28 10:18 ` Victor Fusco
1 sibling, 0 replies; 3+ messages in thread
From: Nishanth Aravamudan @ 2005-06-28 3:40 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 294 bytes --]
On 27.06.2005 [20:59:13 +0000], Victor Fusco wrote:
> description:
> Use set_current_state() instead of direct assignment of
> current->state.
The memory barrier in set_current_state() (as opposed to
__set_current_state()) is not necessary for putting the state back to
RUNNING.
Thanks,
Nish
[-- Attachment #2: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment
2005-06-27 20:59 [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment with Victor Fusco
2005-06-28 3:40 ` [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment Nishanth Aravamudan
@ 2005-06-28 10:18 ` Victor Fusco
1 sibling, 0 replies; 3+ messages in thread
From: Victor Fusco @ 2005-06-28 10:18 UTC (permalink / raw)
To: kernel-janitors
[-- Attachment #1: Type: text/plain, Size: 549 bytes --]
Em Ter 28 Jun 2005 03:40, você escreveu:
> On 27.06.2005 [20:59:13 +0000], Victor Fusco wrote:
> > description:
> > Use set_current_state() instead of direct assignment of
> > current->state.
>
> The memory barrier in set_current_state() (as opposed to
> __set_current_state()) is not necessary for putting the state back to
> RUNNING.
Thanks. The patch with the correction is attached.
description:
Use __set_current_state() instead of direct assignment of
current->state.
Signed-off-by: Victor Fusco <victor@cetuc.puc-rio.br>
[-- Attachment #2: reiserfs_journal_set_current_state.patch --]
[-- Type: text/x-diff, Size: 522 bytes --]
diff -Nru linux-2.6.12/fs/reiserfs/journal.c linux-2.6.12-devel/fs/reiserfs/journal.c
--- linux-2.6.12/fs/reiserfs/journal.c 2005-06-17 19:48:29.000000000 +0000
+++ linux-2.6.12-devel/fs/reiserfs/journal.c 2005-06-27 14:13:59.000000000 +0000
@@ -2584,7 +2584,7 @@
set_current_state(TASK_UNINTERRUPTIBLE);
if (test_bit(J_WRITERS_QUEUED, &journal->j_state))
schedule();
- current->state = TASK_RUNNING;
+ __set_current_state(TASK_RUNNING);
remove_wait_queue(&journal->j_join_wait, &wait);
}
[-- Attachment #3: Type: text/plain, Size: 167 bytes --]
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-06-28 10:18 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-27 20:59 [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment with Victor Fusco
2005-06-28 3:40 ` [KJ] [PATCH] fs/reiserfs/journal.c: replace direct assignment Nishanth Aravamudan
2005-06-28 10:18 ` Victor Fusco
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.