mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Ben Collins <bcollins@debian.org>
To: Bradley Chapman <kakadu_croc@yahoo.com>
Cc: Andrew Morton <akpm@osdl.org>,
	linux-kernel@vger.kernel.org,
	linux1394-devel@lists.sourceforge.net
Subject: Re: This bug appears under 2.6.0-test8 as well (was: 2.6.0-test7-mm1)
Date: Sat, 18 Oct 2003 15:46:17 -0400	[thread overview]
Message-ID: <20031018194617.GZ866@phunnypharm.org> (raw)
In-Reply-To: <20031018180741.69117.qmail@web40912.mail.yahoo.com>

On Sat, Oct 18, 2003 at 11:07:41AM -0700, Bradley Chapman wrote:
> Mr. Collins,

Oh, man, please don't use the "Mr." :)

> --- Ben Collins <bcollins@debian.org> wrote:
> > > 
> > > I was looking briefly at this too, and as you say, the problem is that 
> > > some things have to happen in interrupt, others happen in process 
> > > context.  I've attached a patch that implements one way to fix it: 
> > > double book-keeping - we maintain two lists of the highlevel drivers, 
> > > one protected by a semaphore another protected by the rw spinlock. The 
> > > lists are identical, except between the two list_add_tail()'s (and the 
> > > two list_del()'s), but that doesn't allow any harmful race conditions.
> > > 
> > > A more radical approach would be to split the highlevel interface into 
> > > two interfaces add_host() + remove_host() in a hpsb_host_notification 
> > > interface and the rest in another interface.  The driver would have to 
> > > register both interfaces if it needs them. Some drivers only use 
> > > add_host() and remove_host(), so they could register only the 
> > > hpsb_host_notification interface.
> > 
> > Actually I'm leaning toward getting rid of our internal locking and
> > reference counting and relying heavily on the device model's reference
> > counting and such. Take some of the work load off of our code.
> > 
> > Each host already has a device associated with it, so it just requires a
> > revamp of some internals.
> 
> JFYI, this bug also appears under 2.6.0-test8:

As would be expected considering I'm holding off changes to let 2.6
focus on core issues. The "bug" is pretty much harmless as-is, even if
noisy, and wont show up under normal compiles with debugging disables.

Plus, my fix is a little more than trivial, so I'm keeping it for 2.6.1.

-- 
Debian     - http://www.debian.org/
Linux 1394 - http://www.linux1394.org/
Subversion - http://subversion.tigris.org/
WatchGuard - http://www.watchguard.com/

  reply	other threads:[~2003-10-18 19:50 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-15 10:11 2.6.0-test7-mm1 Bradley Chapman
2003-10-15 10:22 ` 2.6.0-test7-mm1 Andrew Morton
2003-10-15 12:34   ` 2.6.0-test7-mm1 Bradley Chapman
2003-10-15 12:46     ` 2.6.0-test7-mm1 Tim Schmielau
2003-10-15 12:53       ` 2.6.0-test7-mm1 Bradley Chapman
2003-10-15 17:28     ` 2.6.0-test7-mm1 Andrew Morton
2003-10-15 17:40       ` 2.6.0-test7-mm1 Ben Collins
2003-10-15 17:53         ` 2.6.0-test7-mm1 Andrew Morton
2003-10-16  2:25           ` 2.6.0-test7-mm1 Ben Collins
2003-10-16 14:04             ` 2.6.0-test7-mm1 Anton Blanchard
2003-10-18 12:39             ` 2.6.0-test7-mm1 Kristian Høgsberg
2003-10-18 13:27               ` 2.6.0-test7-mm1 Ben Collins
2003-10-18 18:07                 ` This bug appears under 2.6.0-test8 as well (was: 2.6.0-test7-mm1) Bradley Chapman
2003-10-18 19:46                   ` Ben Collins [this message]
2003-10-27 20:13                     ` Mike Fedyk
2003-10-27 20:21                       ` Ben Collins
2003-10-15 21:14   ` 2.6.0-test7-mm1 Alexander Hoogerhuis
2003-10-15 21:44     ` 2.6.0-test7-mm1 Andrew Morton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031018194617.GZ866@phunnypharm.org \
    --to=bcollins@debian.org \
    --cc=akpm@osdl.org \
    --cc=kakadu_croc@yahoo.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux1394-devel@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®