[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.1108260841570.5818@router.home>
Date: Fri, 26 Aug 2011 09:08:17 -0500 (CDT)
From: Christoph Lameter <cl@...ux.com>
To: Zhao Jin <cronozhj@...il.com>
cc: penberg@...nel.org, mpm@...enic.com, trivial@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] slab: avoid unnecessary touching of a partial slab
On Fri, 26 Aug 2011, Zhao Jin wrote:
> In cache_alloc_refill(), after refilling from a partial slab, if the
> slab remains partial, it would be deleted from and then added again to
> the partial list. As the slab is the first element in the list before
> deletion, such behavior has no effect. This patch avoids touching the
> slab in this case.
The list_del/list_add action is a list_move.
--
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