Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265135AbTFFInr (ORCPT ); Fri, 6 Jun 2003 04:43:47 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265145AbTFFInr (ORCPT ); Fri, 6 Jun 2003 04:43:47 -0400 Received: from mion.elka.pw.edu.pl ([194.29.160.35]:60817 "EHLO mion.elka.pw.edu.pl") by vger.kernel.org with ESMTP id S265135AbTFFInq (ORCPT ); Fri, 6 Jun 2003 04:43:46 -0400 Date: Fri, 6 Jun 2003 10:56:15 +0200 (MET DST) From: Bartlomiej Zolnierkiewicz To: Rusty Russell cc: Subject: Re: __check_region in ide code? In-Reply-To: <20030606080454.89EC12C018@lists.samba.org> 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: 1241 Lines: 43 On Fri, 6 Jun 2003, Rusty Russell wrote: > Hi Bart, Hi Rusty, > I notice that drivers/ide/ide-probe.c's hwif_check_region() > still uses check_region(). If it really does want to use it to probe > and not reserve, I think we should stop it warning there. > > There's nothing inherently *wrong* with check_region, it's > just deprecated to trap the old (now racy) idiom of "if > (check_region(xx)) reserve_region(xx)". There's no reason not to > introduce a probe_region if IDE really wants it. And ide-probe.c does exactly this racy stuff. I did patch to convert it to request_region() some time ago, I just need to double check it and submit. Thanks, -- Bartlomiej > Of course, some people will start "fixing" drivers by > s/check_region/probe_region/ when we do this, but that's the risk we > take. > > It should also allow us to easily get rid of that stupid warning in > ksyms.c... > > Thoughts? > Rusty. > -- > Anyone who quotes me in their sig is an idiot. -- Rusty Russell. - 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/