public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
From: Johan Hedberg <johan.hedberg@gmail.com>
To: Lucas De Marchi <lucas.demarchi@profusion.mobi>
Cc: linux-bluetooth@vger.kernel.org
Subject: Re: [PATCH BlueZ 1/3] gdbus: Fix removal of filter after last filter_data
Date: Thu, 28 Jun 2012 10:39:50 +0300	[thread overview]
Message-ID: <20120628073950.GB32563@x220> (raw)
In-Reply-To: <1340639082-10347-1-git-send-email-lucas.demarchi@profusion.mobi>

Hi Lucas,

On Mon, Jun 25, 2012, Lucas De Marchi wrote:
> If there's a signal watch that's also watching for name
> (data->name_watch) currently we are trying to remove the message_filter
> twice since we may have the following call chain:
> 
> filter_data_remove_callback()
>   filter_data_free()
>     g_dbus_remove_watch()
>       filter_data_remove_callback()
> 	filter_data_free()
>         dbus_connection_remove_filter()
>   dbus_connection_remove_filter()
> 
> Because of this we can't currently watch for signals passing the bus
> name. After this patch we don't have this issue anymore.
> 
> We fix it by removing the filter before calling filter_data_free() if we
> are the last filter_data and thus avoid calling
> dbus_connection_remove_filter() twice.
> ---
>  gdbus/watch.c | 17 ++++++++---------
>  1 file changed, 8 insertions(+), 9 deletions(-)

I've applied this first patch to bluez.git and obexd.git. I ignored the
other too since the telephony drivers and the maemo6 plugin are just
about to be removed from the tree in preparation for BlueZ 5.

Johan

      parent reply	other threads:[~2012-06-28  7:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-23 14:02 [PATCH BlueZ] gdbus: Fix removal of filter after last filter_data Lucas De Marchi
2012-06-25  8:51 ` Luiz Augusto von Dentz
2012-06-25 13:26   ` Lucas De Marchi
2012-06-25 15:14     ` Luiz Augusto von Dentz
2012-06-25 15:44       ` [PATCH BlueZ 1/3] " Lucas De Marchi
2012-06-25 15:44         ` [PATCH BlueZ 2/3] telephony-ofono: Fix listening for signals Lucas De Marchi
2012-06-25 15:44         ` [PATCH BlueZ 3/3] maemo6: mce: " Lucas De Marchi
2012-06-25 15:55           ` Luiz Augusto von Dentz
2012-06-25 15:56             ` Lucas De Marchi
2012-06-26  7:45         ` [PATCH BlueZ 1/3] gdbus: Fix removal of filter after last filter_data Luiz Augusto von Dentz
2012-06-28  7:39         ` Johan Hedberg [this message]

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=20120628073950.GB32563@x220 \
    --to=johan.hedberg@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    --cc=lucas.demarchi@profusion.mobi \
    /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