linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
To: Bartlomiej Zolnierkiewicz <B.Zolnierkiewicz@elka.pw.edu.pl>
Cc: Alan Cox <alan@redhat.com>, linux-ide@vger.kernel.org
Subject: Re: PATCH: straighten out the IDE layer locking and add hotplug
Date: Tue, 17 Aug 2004 17:11:19 +0100	[thread overview]
Message-ID: <1092759070.22794.38.camel@localhost.localdomain> (raw)
In-Reply-To: <200408171512.26568.bzolnier@elka.pw.edu.pl>

On Maw, 2004-08-17 at 14:12, Bartlomiej Zolnierkiewicz wrote:
> > +			if (g->irq == hwif->irq)
> > +				++irq_count;
> > +			g = g->next;
> > +		} while (g != hwgroup->hwif);
> > +	}
> > +	spin_unlock_irq(&ide_lock);
> 
> new race(s) here because of not holding ide_cfg_sem anylonger,
> see init_irq() in ide-probe.c and ide_cfg_sem comments in ide.h

Double checked. No race. ide_cfg_sem is held over the whole 
ide_unregister path.



  parent reply	other threads:[~2004-08-17 17:13 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-15 15:13 PATCH: straighten out the IDE layer locking and add hotplug Alan Cox
2004-08-16 17:23 ` Bartlomiej Zolnierkiewicz
2004-08-16 17:36   ` Alan Cox
2004-08-16 22:29     ` Bartlomiej Zolnierkiewicz
2004-08-16 21:43 ` Bartlomiej Zolnierkiewicz
2004-08-16 21:48   ` Alan Cox
2004-08-17 13:12 ` Bartlomiej Zolnierkiewicz
2004-08-17 14:05   ` Alan Cox
2004-08-17 14:30     ` Bartlomiej Zolnierkiewicz
2004-08-17 14:46       ` Alan Cox
2004-08-17 15:05         ` Bartlomiej Zolnierkiewicz
2004-08-17 15:33           ` Alan Cox
2004-08-17 14:40     ` Bartlomiej Zolnierkiewicz
2004-08-17 14:12   ` Bartlomiej Zolnierkiewicz
2004-08-17 14:18     ` Alan Cox
2004-08-17 14:35       ` Bartlomiej Zolnierkiewicz
2004-08-17 16:11   ` Alan Cox [this message]
2004-08-17 20:40     ` Bartlomiej Zolnierkiewicz

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=1092759070.22794.38.camel@localhost.localdomain \
    --to=alan@lxorguk.ukuu.org.uk \
    --cc=B.Zolnierkiewicz@elka.pw.edu.pl \
    --cc=alan@redhat.com \
    --cc=linux-ide@vger.kernel.org \
    /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;
as well as URLs for NNTP newsgroup(s).