Received: by 10.223.176.5 with SMTP id f5csp2475266wra; Thu, 1 Feb 2018 00:59:41 -0800 (PST) X-Google-Smtp-Source: AH8x2252owlD8xoMVdfcKkBf4cQNqrsd7kUKEtRibxk564GiLN5ry8kw2DZfmZ1XKXKAlrcB8E53 X-Received: by 10.101.81.13 with SMTP id f13mr16239273pgq.242.1517475580918; Thu, 01 Feb 2018 00:59:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517475580; cv=none; d=google.com; s=arc-20160816; b=BexwV/QEbcbwKg8c7XxFvoxTdslrrTG82Ka68EbAjHfBJRMDBcFKlPPhSC4KgaE08j PgBmGieULU6DNTnR8khEn8IOm668qAfYdTW5AGf+UISRmJ/AGfqiSyGqjn9Puo7JJCo7 876S2Dfx5at25MWurP+rURhue3U1G4O20+5GhyyLCkiPmm0F4LmboJnA5RA9lC8LN6Qc 99voGK1+K8FTyrGTv+TJJvUK5CnKi1+eaTJ4UY6mpUFqA1Xh+h2fogqPwzUjT/hHctJS mzDI1H5sVD2h17HiesnBnlnx5KNnomKE58URdlG3f5uwTlN2ABdboXYJt0qPBlt7UEG5 In3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=Zb88jbrJdHNyYMGuCpSHO1W1eymRvT9G5/QJOt8f+NY=; b=lTXrea2a+FnReRxKQnMVdenfX1X2XB7d1g+KK+RZ3Ul3BiXZ0TxG7eJIBvvClbav9I 0XVjCSg2lTsYIT9h+XNTo3wXSKRlWTKGyuC2ThEQThMzy9LraG++yMJdFu82wj0re7OB Z9COsUbclqLnbOTpADbXCJVm/o8FecjftriVOuTk8sst3oSggyUOEjmrmpNEYABvPdPa KQFhMxNvIJMnEE7Q6kGdHwYXAF/jkU0httUVthDOQsd5JMu/4lE7n9WNYTOwhVIOQB24 9cAMBUJSIEyT3Ea9T55D8CJLtHoE9QYvWmw4RpCgyDBSPPg/+Ojncptdh8BfETJYYXOp pMgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YNNUcNOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e39-v6si3876884plg.522.2018.02.01.00.59.26; Thu, 01 Feb 2018 00:59:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YNNUcNOf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751997AbeBAI5e (ORCPT + 99 others); Thu, 1 Feb 2018 03:57:34 -0500 Received: from mail-lf0-f67.google.com ([209.85.215.67]:40157 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751772AbeBAI53 (ORCPT ); Thu, 1 Feb 2018 03:57:29 -0500 Received: by mail-lf0-f67.google.com with SMTP id h92so25007075lfi.7 for ; Thu, 01 Feb 2018 00:57:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Zb88jbrJdHNyYMGuCpSHO1W1eymRvT9G5/QJOt8f+NY=; b=YNNUcNOf6LDhdbXUMaKWf6mr8x4lzPphsybOmmGwVp4jAk8yrKpXfr63xkW+o/NCmF COlipqKaY3VXjXD71jby36zjGiRBxcRiF8CScR5qUpBoIgggFOMs+5uItmc0WEugJnWi 7g66iPxz73vV9YrMnT8L4qCCzQe+nRK1KeYXCveptPOYTAiNrAEEcjFd/om7wnJk32Qx b4G1Mq3OYQmvne4O2Ndo3OcsifFE4PVbi+QvDfIG4TjGsZddKjtdvKT42Iqjgbpc94wA /7vCrrWIhaekLbOzr/8/JhRh8p0+lpMM1URKBlzS8P3Bh08E+46NPQhb+G1vNRwEgEh9 dTag== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=Zb88jbrJdHNyYMGuCpSHO1W1eymRvT9G5/QJOt8f+NY=; b=Jx8PeqHgA04nEvZ6IpliJvIAxB3tIbMp3rdCuGMmhPTnQbC4qR3B4SZZnUgrorHq9o WO/PtJju8Qt53ssdV+M+H96Inm73jVCFyrXiA2gM7BUn6kjFWXlLbWuxhLeMdtjhr57W SY1maqv6Aoa47w7wbb+GjEnIhDTAR9Pv8pwRbHv5+xQfZTAqfmTsO/7Sj2SMwCbsf2Pn Zxw9P/rbMX+Zuox0E/j204iDOY6uV8JEZyGEbasN0rbrSU8Cg0dzu+avSuKg1AdAs9vR 2sgis1Hfv0s7Tc6UyU7Tb+yMpWbysh3s3mRWkMCn/haLc2h8RL2qsoZwFIraWOSWHSRm aCCA== X-Gm-Message-State: AKwxytfhdsSalPyihr99AT7SgnyKGAFNkuU6+uLaLuhL57W+GxLN0J4/ EDZAjqkh+k2ol4lu808ixlY= X-Received: by 10.25.150.147 with SMTP id y141mr22504928lfd.33.1517475448411; Thu, 01 Feb 2018 00:57:28 -0800 (PST) Received: from a2k-HP-ProDesk-600-G2-SFF.kyiv.epam.com (ll-74.141.223.85.sovam.net.ua. [85.223.141.74]) by smtp.gmail.com with ESMTPSA id o88sm2586465lfg.84.2018.02.01.00.57.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Feb 2018 00:57:27 -0800 (PST) From: Oleksandr Andrushchenko To: xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: jgross@suse.com, david.vrabel@citrix.com, boris.ostrovsky@oracle.com, otubo@redhat.com, Oleksandr Andrushchenko Subject: [PATCH] xen: fix frontend driver disconnected from xenbus on removal Date: Thu, 1 Feb 2018 10:57:18 +0200 Message-Id: <1517475439-10541-1-git-send-email-andr2000@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksandr Andrushchenko Hi, all! While working on DRM PV frontend driver I faced an issue with driver removal, e.g. when driver's .remove callback is called the driver is already disconnected form the xenbus and it is not possible to synchronize the process of removal with the backend. Backend in my case is a user-space application, so this may explain why backends which are kernel modules do not suffer from this: it seems that user-space is clumsy and its states are not delivered through xenbus fast enough. The obvious way to fix this behavior is to disconnect frontend drivers from xenbus _after_ their .remove callback is called. Thank you, Oleksandr Andrushchenko Oleksandr Andrushchenko (1): xen: fix frontend driver disconnected from xenbus on removal drivers/xen/xenbus/xenbus_probe.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4