s390/pfault: use __set_task_state
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 10 May 2012 07:56:34 +0000 (09:56 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 16 May 2012 12:42:42 +0000 (14:42 +0200)
Use __set_task_state() instead of set_task_state(). Saves a couple of
instructions, since the memory barrier is not needed here.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/mm/fault.c

index 4306f5e75a33b466834e43b4de3bc7cd318f095a..a9c11aa57450b4e5b8262446d7171e032689432b 100644 (file)
@@ -586,7 +586,7 @@ static void pfault_interrupt(struct ext_code ext_code,
                /* signal bit not set -> a real page is missing. */
                if (tsk->thread.pfault_wait == 1) {
                        /* Already on the list with a reference: put to sleep */
-                       set_task_state(tsk, TASK_UNINTERRUPTIBLE);
+                       __set_task_state(tsk, TASK_UNINTERRUPTIBLE);
                        set_tsk_need_resched(tsk);
                } else if (tsk->thread.pfault_wait == -1) {
                        /* Completion interrupt was faster than the initial
@@ -602,7 +602,7 @@ static void pfault_interrupt(struct ext_code ext_code,
                        get_task_struct(tsk);
                        tsk->thread.pfault_wait = 1;
                        list_add(&tsk->thread.list, &pfault_list);
-                       set_task_state(tsk, TASK_UNINTERRUPTIBLE);
+                       __set_task_state(tsk, TASK_UNINTERRUPTIBLE);
                        set_tsk_need_resched(tsk);
                }
        }