Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp199493ybg; Mon, 8 Jun 2020 20:59:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz/RCpn2xwpXuMn09DMN/WlFQmRUdmzRKTVMMcPGhtEMaxUqByLpo6e2gDJSyFsiDBEeZqe X-Received: by 2002:a17:906:8488:: with SMTP id m8mr22717491ejx.236.1591675195444; Mon, 08 Jun 2020 20:59:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591675195; cv=none; d=google.com; s=arc-20160816; b=uappru2KE7kSnLMcYKnQ8LAxiY3kR26QcXolSADqfXwHyTeALD+3vFJlC5DABMCbPX RIory3s0nwpUYf9Vc5wfqXYmJ2hR5dzV7k5FCanrLfWCPMLRi0Wa9QJE8rYOtkuYSUlC 2xjD+pTcAyZaNEWSlwEHGIxUOAhMua85kieuPcxzuPFA1g7N55zA76SgoTndtCNOUGIx 9aEpC0bpCIVLN2kl3qpFAnoKmz5Ui3sNBUpATAp05y2ACNPUuCH6LOx+NEfQgsa7T30E ls05gD+gnYwnI24EYMoC2RcLEutwYTHBz7BXYtsrEoIu0O3H2aRdx2UTjEoqAEK4tOId 4A7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=vPAnnVOemt6jpeHN6Bz/RRDBW50M5i0HN8j9LzjIxsA=; b=kzYBoAk+sNsC2EcskoWayJAHahoUQSGZowSzabD5J3cYrNlpQV+HpQwKkubEXieweX utmwYYU8rcILwQ4r3cdXLphfPO6huvhmuqVt355w62LdB+WsjvNwQV65xpiC/C58WgS4 Up9+CUoCbqXi5UjDxqBVWbhJIfIiGjIcsoH9kMk10oSsh3GHugKbC6iPg4L3592TIroq PRR7pQc9ADKYiCg9WhjvUPTZVkbY7uq5T/12N5dSQhnSjGm58/7nJB7LeS3wSvAkebW8 85Pya2FSHfxNrScsn6X8OK6blZ5gbm2DlszlYpHcHGb0bPt/enCHdeQcXjBFmZGtrApf QSmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c2si10742020edm.499.2020.06.08.20.59.14; Mon, 08 Jun 2020 20:59:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726831AbgFID7L (ORCPT + 99 others); Mon, 8 Jun 2020 23:59:11 -0400 Received: from mga12.intel.com ([192.55.52.136]:17236 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726803AbgFID7L (ORCPT ); Mon, 8 Jun 2020 23:59:11 -0400 IronPort-SDR: aunxvtkzZkObYkglWRKn6c0Mhie7qzen1N0aHr7f1AP8WTY88oNw12lMylqz3lBd9Bt0KAx4FF AaK6qmrMzp3Q== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jun 2020 20:59:10 -0700 IronPort-SDR: jWer0k92bQxX0YFrEXuBD2EY2FKEBpc6gzUNhoS5XQC8OPeTfDDkn3vXnJTYWLM8N84NClb2La iS5alrwpLNqA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,490,1583222400"; d="scan'208";a="274461133" Received: from vrsuryad-mobl1.amr.corp.intel.com (HELO ingas-nuc1.sea.intel.com) ([10.255.228.38]) by orsmga006.jf.intel.com with ESMTP; 08 Jun 2020 20:59:10 -0700 From: Inga Stotland To: linux-bluetooth@vger.kernel.org Cc: brian.gix@intel.com, przemyslaw.fierek@silvair.com, Inga Stotland Subject: [PATCH BlueZ 0/4] Put safeguards around Leave call Date: Mon, 8 Jun 2020 20:59:05 -0700 Message-Id: <20200609035909.51061-1-inga.stotland@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org This set of patches addresses the situation when an application calls Leave() method on a node that has another incomplete method call on Network interface associated with it. The simple solution is to return error in response to Leave() method if an application still owes the daemon either a reply to GetManagedObjects request in case of Attach() or a reply to JoinComplete() in case of Join(), Create() or Import() Inga Stotland (4): mesh: Make "Busy" and "InProgress" to be distinct errors mesh: Add destroy callback to dbus_send_with_timeout() mesh: Add timeout to a get managed objects call mesh: Add "node is busy" check for Leave() method doc/mesh-api.txt | 4 +++- mesh/dbus.c | 14 +++++++---- mesh/dbus.h | 1 + mesh/error.h | 1 + mesh/manager.c | 11 ++++----- mesh/mesh.c | 17 +++++++------ mesh/node.c | 62 +++++++++++++++++++++++++++++------------------- mesh/node.h | 2 +- 8 files changed, 68 insertions(+), 44 deletions(-) -- 2.26.2