diff options
author | Paul Mackerras <paulus@samba.org> | 2008-05-16 15:13:42 +0200 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-05-16 15:13:42 +0200 |
commit | fcff474ea5cb17ff015aa40e92ed86fede41f1e2 (patch) | |
tree | a99c0e14daaf31cb078812fb2fbc6abadfcd738f /mm/pdflush.c | |
parent | [POWERPC] Fix sparse warnings in arch/powerpc/platforms/pseries (diff) | |
parent | Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/... (diff) | |
download | linux-fcff474ea5cb17ff015aa40e92ed86fede41f1e2.tar.xz linux-fcff474ea5cb17ff015aa40e92ed86fede41f1e2.zip |
Merge branch 'linux-2.6' into powerpc-next
Diffstat (limited to 'mm/pdflush.c')
-rw-r--r-- | mm/pdflush.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/pdflush.c b/mm/pdflush.c index 1c96cfc9e040..9d834aa4b979 100644 --- a/mm/pdflush.c +++ b/mm/pdflush.c @@ -207,7 +207,6 @@ int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0) spin_lock_irqsave(&pdflush_lock, flags); if (list_empty(&pdflush_list)) { - spin_unlock_irqrestore(&pdflush_lock, flags); ret = -1; } else { struct pdflush_work *pdf; @@ -219,8 +218,9 @@ int pdflush_operation(void (*fn)(unsigned long), unsigned long arg0) pdf->fn = fn; pdf->arg0 = arg0; wake_up_process(pdf->who); - spin_unlock_irqrestore(&pdflush_lock, flags); } + spin_unlock_irqrestore(&pdflush_lock, flags); + return ret; } |