[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-id: <alpine.DEB.1.00.0811190236550.24738@zirkon.biophys.uni-duesseldorf.de>
Date: Wed, 19 Nov 2008 03:33:52 +0100 (CET)
From: Michael Schmitz <schmitz@...phys.uni-duesseldorf.de>
To: Bartlomiej Zolnierkiewicz <bzolnier@...il.com>
Cc: linux-ide@...r.kernel.org, linux-kernel@...r.kernel.org,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Elias Oltmanns <eo@...ensachen.de>
Subject: Re: [PATCH 2/3] ide: add ide_[un]lock_hwgroup() helpers
> - while (!hwgroup->busy) {
> - hwgroup->busy = 1;
> - /* for atari only */
> - ide_get_lock(ide_intr, hwgroup);
> + while (!ide_lock_hwgroup(hwgroup)) {
Something I've run into while working on the locking stuff: what happens if the
above ide_lock_hwgroup(hwgroup) sleeps for long enough to trigger the request
timer?
I'll think about the ramifications of your patch in the context of what I tested
WRT unlocking whenever hwgroup->busy is cleared, and get back to you.
Michael
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists