Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 9 Jul 2002 01:08:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 9 Jul 2002 01:08:19 -0400 Received: from ns1.intercarve.net ([216.254.127.221]:10297 "HELO ceramicfrog.intercarve.net") by vger.kernel.org with SMTP id ; Tue, 9 Jul 2002 01:08:19 -0400 Date: Tue, 9 Jul 2002 00:49:08 -0400 (EDT) From: "Drew P. Vogel" To: Rick Lindsley Cc: Greg KH , Dave Hansen , Thunder from the hill , kernel-janitor-discuss , Subject: Re: BKL removal In-Reply-To: <200207090146.g691kD429646@eng4.beaverton.ibm.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1463 Lines: 33 > If nothing else, I hope you will think twice before sending off > your next BKL removel patch in a subsystem that you haven't fully > tested or understood. That's the point I keep trying to get across > here. > >So can you define for me under what conditions the BKL is appropriate >to use? Removing it from legitimate uses would be bad, of course, but >part of the problem here is that it's currently used for a variety of >unrelated purposes. If the trade-offs weigh in about the same, removing the BKL from legitimate uses in favor of a different (neither better nor worse) approach would be more than acceptable, would it not? Would creating a few new names for lock_kernel() and friends be acceptable? Just a few macros to give slightly more meaningful names to each function call for 2.5. Then take lock_kernel() entirely away (the name, not the function), in 2.7. By 2.9 it should be able to be removed from nearly all "inappropriate" uses. This seems like it would encourage more explicit usage of the BKL, while giving maintainers ample time to comply. Note that I have never added or removed a lock from the kernel. I am simply thinking aloud; half hoping to be corrected. --Drew Vogel - 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/