Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754463AbZLBO4I (ORCPT ); Wed, 2 Dec 2009 09:56:08 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753618AbZLBO4I (ORCPT ); Wed, 2 Dec 2009 09:56:08 -0500 Received: from nlpi129.sbcis.sbc.com ([207.115.36.143]:35167 "EHLO nlpi129.prodigy.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753380AbZLBO4G (ORCPT ); Wed, 2 Dec 2009 09:56:06 -0500 Date: Wed, 2 Dec 2009 08:55:17 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@router.home To: Tejun Heo cc: Ingo Molnar , Stephen Rothwell , michal.simek@petalogix.com, linux-next@vger.kernel.org, LKML , Rusty Russell Subject: Re: problems in linux-next (Was: Re: linux-next: Tree for December 1) In-Reply-To: <4B15A5A6.2090200@kernel.org> Message-ID: References: <20091201190301.0fb7abad.sfr@canb.auug.org.au> <4B14D6E2.2040704@petalogix.com> <20091201210343.f0a1d353.sfr@canb.auug.org.au> <4B152D22.9070001@kernel.org> <20091201160119.GA10826@elte.hu> <4B15A5A6.2090200@kernel.org> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 862 Lines: 18 On Wed, 2 Dec 2009, Tejun Heo wrote: > This isn't usual alignment. struct work_struct has one data fields > which is overloaded for two purposes. Lower few bits are used to > carry flags while upper bits are used to point to sruct > cpu_workqueue_struct. So, the number of available bits for flags are > determined by the alignment of cpu_workqueue_struct. Memory usage for The default mininum slab alignment in UP is 8 bytes which means you can use 3 bits. And as far as I can see only the lower two bits are used. You still have one bit leftover. (current upstream that is did not check if you modified it). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/