Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp434127ybi; Fri, 24 May 2019 06:12:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqwqjm5nsxcd8zyQt8im6G90PZHWb0iNzUCb3hcE/wuxdIhPmbtQd/aUNZtblJn7MPq1X/PN X-Received: by 2002:a17:90a:b398:: with SMTP id e24mr8897920pjr.83.1558703539458; Fri, 24 May 2019 06:12:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558703539; cv=none; d=google.com; s=arc-20160816; b=fqMnE2LMaNycL/qg3eWeAovyaZto0ieG8r0oJXeOxi+f1JNdGzH1XbMOcXR8jZa/N6 tMVGlOR5yIdBiUqYlTi0PbwOzy7CUp7j7vHWRE6ysp9MkUT0WKon8ySU3L119fLZOCcl Hn5UyN8uCpsTYy9YjHSUEtdJwg7vINvOP8v6uN4dXji0nBefwgvGgqxeYTKcTYRKYcD/ 9NIKhia3LucjJWAjVZXPRFee1fLkd6m0QOniwYMuzRmlNvwPXLZidF7RbECAV3QmDDDZ q6LGXJzyQ90pL+RSaow13EHllAkV5x6FX2F1eh8S1Kwofw4idurGZUkRhg6ISdMMg6T/ c7ZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1NFK9aapiSHvsfIUj35JfqUMZ2Y7KkhyrVEtoE1rNlo=; b=AWfu8SE/nRiDejGkA/RjteNHHGMgTtIftvYDqgFWEtbfJeNc/pLAcBIscxggBh3V9p YufmObjTWf2yyuQ/wJ3MTIRA4vIrQYBIljEjTKKuvkWB9wnKMj6aaXEUMQWwin8BNxxo 9ezSD1YXHqMatJSYGs+sj8JrCfsTi2BZjLMTxgoQCLdHmrzydTlqNtiMZ3B0MmhOdkrw lnOxGNI/tzwsaNbcDTCjbY5vmgmNbUIy3p3ay0Tz9Ywq0lJMscU2Rjdl4TghssJI9zH/ qyVT4cwUZLVXXjaVnJCc96JhWMH727ZVpINWdY2iAW9rSvb2HDriLDSMErFjZcrALcMT 6uaw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=EYXxJ25S; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f61si3892303pje.44.2019.05.24.06.12.02; Fri, 24 May 2019 06:12:19 -0700 (PDT) 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=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=EYXxJ25S; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403852AbfEXNJC (ORCPT + 99 others); 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-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