]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/exit.c
shpchp: remove shpchprm_get_physical_slot_number
[linux-2.6-omap-h63xx.git] / kernel / exit.c
index 5f77e76b4f97666c53e4a78d6213288bf88105a7..122fadb972fc2dd9ff3fda5cf15c3c0432a50007 100644 (file)
@@ -466,11 +466,9 @@ void fastcall put_files_struct(struct files_struct *files)
                 * you can free files immediately.
                 */
                fdt = files_fdtable(files);
-               if (fdt == &files->fdtab)
-                       fdt->free_files = files;
-               else
+               if (fdt != &files->fdtab)
                        kmem_cache_free(files_cachep, files);
-               free_fdtable(fdt);
+               call_rcu(&fdt->rcu, free_fdtable_rcu);
        }
 }