From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.0 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,USER_AGENT_NEOMUTT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D1E09C282E3 for ; Fri, 24 May 2019 13:09:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A9FDA20868 for ; Fri, 24 May 2019 13:09:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=toxicpanda-com.20150623.gappssmtp.com header.i=@toxicpanda-com.20150623.gappssmtp.com header.b="EYXxJ25S" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403859AbfEXNJC (ORCPT ); Fri, 24 May 2019 09:09:02 -0400 Received: from mail-vk1-f193.google.com ([209.85.221.193]:40596 "EHLO mail-vk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391193AbfEXNJB (ORCPT ); Fri, 24 May 2019 09:09:01 -0400 Received: by mail-vk1-f193.google.com with SMTP id v140so2107326vkd.7 for ; Fri, 24 May 2019 06:09:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1NFK9aapiSHvsfIUj35JfqUMZ2Y7KkhyrVEtoE1rNlo=; b=EYXxJ25SpuP4HuvEOLSk+zi+mVPSGhOX25UDQE/sUtZJKdvkLF44+bWtW1eWv9AX6+ /pKQzpJ/ypcCzYcgtZcr7B44gBnyZFJDbYJnpzKHyFra6gwrZ8KSSrmUHBtB1+9TxFPS EGwMSJHMVfrBBvWbQzV/sH7BnQXaZqevzNOBAeBOsno0bv22fGAlf5FWntZzalS1VaAI ZoPzw2wsj0lnH7LEjts6kFv2LbuozDQLeclYFZIdYVaSHmtbgBQ98HAHq1x05qhuahsE Plt7dW56m9PAhslYjZ4hGEtZcUo7cpLNyehcLl1VvBT103zfKklMSuPHhSONGeWcDAt3 yw5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1NFK9aapiSHvsfIUj35JfqUMZ2Y7KkhyrVEtoE1rNlo=; b=W3Drw/0J+Zw8NyTBowIbFXBMab0cJWvSAPeJBNFoob/qgwOM/72DbL92L6gTJ/kpVf Ud9L3pwC3ojOSoFxtKLg4rysLKisbFPNLiH8w8rxc6g4T+5vqFv80/2BJYfQitvbgYIH qrznYGVrYsYnVDlnMDa1c97OVq2/d3jX+12ZoL1PjJ1kEyCG4zd+AKzzM6iojD1RrKXj kF/z0M71pJymd6P+Rd2WAFReWyZvFsBo37S1xxPK/oMdVh4U4H9M5eZ0ss3MbpnsOk53 hxFXngUO0xjSGV8CCRL6aTg4JDcM22pSq+p+fBETUBcm0rzBaMFbcKUCpfKJGMXVBxYH XlPg== X-Gm-Message-State: APjAAAUpgLd7r2k2d4qkY/SjcfkA/jbHARncvMfJ0IXt8WZvsMEh7MXG 80qvL9grY8F+QbNuCrE+aKSl8w== X-Google-Smtp-Source: APXvYqwSNSRIsSEWFVwlmbvUZtMXOmCI7hQZGA8lIGGGG7uY/2hEEqrVZAFNsLcsasTdlDybTnGHdg== X-Received: by 2002:a1f:9d07:: with SMTP id g7mr4795657vke.40.1558703340487; Fri, 24 May 2019 06:09:00 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::e914]) by smtp.gmail.com with ESMTPSA id 143sm1127525vkj.44.2019.05.24.06.08.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 06:08:59 -0700 (PDT) Date: Fri, 24 May 2019 09:08:58 -0400 From: Josef Bacik To: Yao Liu Cc: Josef Bacik , Jens Axboe , linux-block@vger.kernel.org, nbd@other.debian.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] nbd: notify userland even if nbd has already disconnected Message-ID: <20190524130856.zod5agp7hk74pcnr@MacBook-Pro-91.local.dhcp.thefacebook.com> References: <1558691036-16281-1-git-send-email-yotta.liu@ucloud.cn> <1558691036-16281-2-git-send-email-yotta.liu@ucloud.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1558691036-16281-2-git-send-email-yotta.liu@ucloud.cn> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 24, 2019 at 05:43:55PM +0800, Yao Liu wrote: > Some nbd client implementations have a userland's daemon, so we should > inform client daemon to clean up and exit. > > Signed-off-by: Yao Liu Except the nbd_disconnected() check is for the case that the client told us specifically to disconnect, so we don't want to send the notification to re-connect because we've already been told we want to tear everything down. Nack to this as well. Thanks, Josef