patch-2.1.126 linux/mm/slab.c
Next file: linux/mm/swap_state.c
Previous file: linux/mm/page_alloc.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Wed Oct 21 08:52:06 1998
- Orig file:
v2.1.125/linux/mm/slab.c
- Orig date:
Wed Aug 26 11:37:45 1998
diff -u --recursive --new-file v2.1.125/linux/mm/slab.c linux/mm/slab.c
@@ -1444,8 +1444,10 @@
}
/* Couldn't grow, but some objs may have been freed. */
spin_lock_irq(&cachep->c_spinlock);
- if (cachep->c_freep != kmem_slab_end(cachep))
- goto try_again;
+ if (cachep->c_freep != kmem_slab_end(cachep)) {
+ if ((flags & SLAB_ATOMIC) == 0)
+ goto try_again;
+ }
} else {
/* Very serious error - maybe panic() here? */
kmem_report_alloc_err("Bad slab magic (corrupt)", cachep);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov