Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1760135AbYG3TI2 (ORCPT ); Wed, 30 Jul 2008 15:08:28 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756716AbYG3TIU (ORCPT ); Wed, 30 Jul 2008 15:08:20 -0400 Received: from bombadil.infradead.org ([18.85.46.34]:41488 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755441AbYG3TIT (ORCPT ); Wed, 30 Jul 2008 15:08:19 -0400 Subject: Re: [PATCH] mISDN cleanup user interface From: David Woodhouse To: Karsten Keil Cc: isdn4linux@listserv.isdn4linux.de, Marcel Holtmann , Linus Torvalds , linux-kernel@vger.kernel.org In-Reply-To: <20080730175138.GA12800@pingi.kke.suse.de> References: <20080729195637.GB25929@pingi.kke.suse.de> <1217362946.27925.137.camel@pmac.infradead.org> <1217365330.417.8.camel@californication> <1217409211.27925.177.camel@pmac.infradead.org> <20080730163314.GB9491@pingi.kke.suse.de> <1217437021.3454.8.camel@pmac.infradead.org> <20080730175138.GA12800@pingi.kke.suse.de> Content-Type: text/plain Date: Wed, 30 Jul 2008 20:08:12 +0100 Message-Id: <1217444892.3454.28.camel@pmac.infradead.org> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 (2.22.3.1-1.fc9) Content-Transfer-Encoding: 7bit X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 794 Lines: 19 On Wed, 2008-07-30 at 19:51 +0200, Karsten Keil wrote: > > Are you later intending to use the bitmap to mark them as busy/free? > > Yes exactely, and this was the reason why the original code (which used one u_long > only as channelmap) already used the bit operators, since for a channel allocator > you should be atomic, but since we are now allow 127 channels we need proper > locking for the busy/free map anyways and so we do not need atomic operation > here. OK, that makes sense then. Your latest patch looks good in that case. -- dwmw2 -- 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/