All of lore.kernel.org
 help / color / mirror / Atom feed
From: Nishanth Aravamudan <nacc@us.ibm.com>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] Re: [PATCH] 18/34: ieee1394/video1394: replace
Date: Tue, 15 Feb 2005 18:18:11 +0000	[thread overview]
Message-ID: <20050215181811.GA2377@us.ibm.com> (raw)
In-Reply-To: <20050215002049.GH9231@conscoop.ottawa.on.ca>

[-- Attachment #1: Type: text/plain, Size: 1459 bytes --]

On Mon, Feb 14, 2005 at 08:34:20PM -0500, Jody McIntyre wrote:
> On Mon, Feb 14, 2005 at 04:50:47PM -0800, Nishanth Aravamudan wrote:
> 
> > > In my copy, it _unlocks_ around the sleep.  I don't see why this
> > > couldn't be done with wait_event_interruptible (unlock, wait, lock).
> > > Can you produce a patch with that?  I'll find a video1394 user to test
> > > it.
> > 
> > Sorry for my mis-statement/lack of clarity. In my copy, it also unlocks
> > around the sleep... The problem is that wait_event*() should be used in
> > such a way that the while-loop is not at all necessary (ideally).
> > Instead, we'll have a while-loop around the unlock-wait_event-lock code,
> > which is just ugly to me, as wait_event is just a macro around another
> > while loop. The real solution is wait_event_interruptible_lock().
> > Hopefully I can get such a macro accepted into mainline sooner or
> > later...
> 
> So you want to leave tho old code in until then?  Fair enough.
> 
> > I'm assuming the locking is done this way so that other variables protected by
> > the same lock can be changed while this one sleeps?
> 
> Correct.  See, for example, wakeup_dma_ir_ctx() .

I am not sure if you have seen some of the discussion (under the
subject: "[RFC UPDATE PATCH] add wait_event_*_lock() functions and
comments") on LKML regarding these macros. Does Arnd's proposal to fix
video1394 seem reasonable? I can throw up a patch, if you'd like to
test.

Thanks,
Nish

[-- Attachment #2: Type: text/plain, Size: 167 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2005-02-15 18:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-15  0:20 [KJ] Re: [PATCH] 18/34: ieee1394/video1394: replace Jody McIntyre
2005-02-15  0:32 ` Nishanth Aravamudan
2005-02-15  0:42 ` Jody McIntyre
2005-02-15  0:50 ` Nishanth Aravamudan
2005-02-15  1:34 ` Jody McIntyre
2005-02-15  1:43 ` Nishanth Aravamudan
2005-02-15 18:18 ` Nishanth Aravamudan [this message]
2005-02-15 22:03 ` Jody McIntyre
2005-02-21 17:46 ` Nishanth Aravamudan
2005-02-22 17:29 ` Jody McIntyre
2005-02-22 17:37 ` Nishanth Aravamudan
2005-03-03 22:07 ` Jody McIntyre

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=20050215181811.GA2377@us.ibm.com \
    --to=nacc@us.ibm.com \
    --cc=kernel-janitors@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.