lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Mon, 1 Jul 2013 18:19:43 +0000 From: Christoph Lameter <cl@...ux.com> To: Zhang Yanfei <zhangyanfei.yes@...il.com> cc: penberg@...nel.org, mpm@...enic.com, Linux MM <linux-mm@...ck.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, Zhang Yanfei <zhangyanfei@...fujitsu.com> Subject: Re: [PATCH] mm, slab: Drop unnecessary slabp->inuse < cachep->num test On Tue, 2 Jul 2013, Zhang Yanfei wrote: > From: Zhang Yanfei <zhangyanfei@...fujitsu.com> > > In function cache_alloc_refill, we have used BUG_ON to ensure > that slabp->inuse is less than cachep->num before the while > test. And in the while body, we do not change the value of > slabp->inuse and cachep->num, so it is not necessary to test > if slabp->inuse < cachep->num test for every loop. The body calls slab_get_obj which changes slabp->inuse! -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists