From: Marcel Holtmann <marcel@holtmann.org>
To: Brian Rogers <brian@xyzw.org>
Cc: linux-bluetooth@vger.kernel.org,
Kay Sievers <kay.sievers@vrfy.org>,
David Woodhouse <dwmw2@infradead.org>
Subject: Re: [PATCH] Wait for child devices to go away before deleting a connection
Date: Mon, 20 Jul 2009 10:10:30 +0200 [thread overview]
Message-ID: <1248077430.4549.97.camel@violet> (raw)
In-Reply-To: <4A6424D8.3040306@xyzw.org>
Hi Brian,
> This patch fixes the device removal order when a connection is closed,
> which allows HAL to see the remove event and prevents a bunch of
> duplicate devices from piling up and eventually hitting the limit for
> the for input devices in X.
>
> Posting for discussion since I used a polling loop (with a sleep) to
> wait for child devices to go away. I assume it'd be preferable to wait
> in a more proper way. In that case, before I start, is this the right
> place to be waiting?
since this is executed in a workqueue, you could easily sleep here
without any problems. However why do you need to sleep at all. The
device_move should sleep until the device is moved away, doesn't it?
Kay, David, wouldn't be pinning of the parent device here be enough to
get this done in a clean way?
Regards
Marcel
next prev parent reply other threads:[~2009-07-20 8:10 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-20 8:03 [PATCH] Wait for child devices to go away before deleting a connection Brian Rogers
2009-07-20 8:10 ` Marcel Holtmann [this message]
2009-07-23 13:25 ` Brian Rogers
2009-07-29 21:12 ` Marcel Holtmann
2009-07-29 22:37 ` Brian Rogers
2009-07-30 2:33 ` Marcel Holtmann
2009-07-30 3:25 ` Brian Rogers
2009-07-30 3:49 ` Marcel Holtmann
2009-07-30 5:24 ` Brian Rogers
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=1248077430.4549.97.camel@violet \
--to=marcel@holtmann.org \
--cc=brian@xyzw.org \
--cc=dwmw2@infradead.org \
--cc=kay.sievers@vrfy.org \
--cc=linux-bluetooth@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.