]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - mm/pdflush.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-2.6
[mv-sheeva.git] / mm / pdflush.c
index 8ce0900dc95ce13052ee6241f7cf6de91f828a8a..0ceacff56457d10c607a36a51da040af806465d4 100644 (file)
@@ -92,6 +92,7 @@ struct pdflush_work {
 static int __pdflush(struct pdflush_work *my_work)
 {
        current->flags |= PF_FLUSHER | PF_SWAPWRITE;
+       set_freezable();
        my_work->fn = NULL;
        my_work->who = current;
        INIT_LIST_HEAD(&my_work->list);
@@ -186,8 +187,8 @@ static int pdflush(void *dummy)
         * This is needed as pdflush's are dynamically created and destroyed.
         * The boottime pdflush's are easily placed w/o these 2 lines.
         */
-       cpus_allowed = cpuset_cpus_allowed(current);
-       set_cpus_allowed(current, cpus_allowed);
+       cpuset_cpus_allowed(current, &cpus_allowed);
+       set_cpus_allowed_ptr(current, &cpus_allowed);
 
        return __pdflush(&my_work);
 }