public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Christoph Hellwig <hch@infradead.org>, linux-scsi@vger.kernel.org
Subject: Re: compile warning fix for advansys (trivial)
Date: Sun, 28 Dec 2003 23:28:31 +0000	[thread overview]
Message-ID: <20031228232831.A23869@infradead.org> (raw)
In-Reply-To: <Pine.LNX.4.44.0312290017120.554-100000@poirot.grange>; from g.liakhovetski@gmx.de on Mon, Dec 29, 2003 at 12:26:39AM +0100

On Mon, Dec 29, 2003 at 12:26:39AM +0100, Guennadi Liakhovetski wrote:
> > It's not that easy.  You need to move the request_region as early as
> > the check_region is currently and make sure you properly release the
> > I/O region again on an initialization failure later on.
> 
> Hm, my assumption was, that if the old version, doing
> 
> if (check_region())
> 	fail();
> 
> if (!request_region())
> 	fail();
> 
> was correct, it would mean, that if check_region succeeds, but due to the
> race, the following request_region() fails, the error-processing and
> bailing-out should work correct. So, we can just safely assume, that the
> check_region() does succeed, and let the actual request_region decide. So,
> I think, the patch would only be wrong if either the original driver
> behaviour was wrong in the race-case,

it was.  That's why we're changing it after all :)


  reply	other threads:[~2003-12-28 23:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-21 21:40 compile warning fix for advansys (trivial) Guennadi Liakhovetski
2003-12-28 20:05 ` Christoph Hellwig
2003-12-28 23:26   ` Guennadi Liakhovetski
2003-12-28 23:28     ` Christoph Hellwig [this message]
2003-12-30 22:32       ` Guennadi Liakhovetski
2003-12-31 18:17       ` Guennadi Liakhovetski

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=20031228232831.A23869@infradead.org \
    --to=hch@infradead.org \
    --cc=g.liakhovetski@gmx.de \
    --cc=linux-scsi@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