Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp432877ybi; Fri, 24 May 2019 06:11:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTMesnhY7v2bC0TqoXwE50mZQAu6tDZ8eLPphkrMxmFeE9Z6fxLZXEoBf1zra5wTOhXGA6 X-Received: by 2002:a17:902:5acb:: with SMTP id g11mr9024622plm.198.1558703481342; Fri, 24 May 2019 06:11:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558703481; cv=none; d=google.com; s=arc-20160816; b=AaKyGBYZ/RRTQ6cEYoPkJsNKzDyo0qeisOvr7oW3ojEIpQQtrCqDLMRoIQMtaLON0Y Sql0t27SP1brApz+r/swLKNDRLO7tcZWkw30POF9uzUcW0nW0b7PT/Fvi2XgFtFNP89S bPYBEOxEk74BCGz7N2M2rMHBZd80IKEeClsThIvta9Q8Sn73iUU8+9zTJ9ytVl5j7E1Y YikfIEdQC80kxZqD4BrHsNOxJ6Ylxb/HsHoiH04B3gYQtP43BW0IQObYZ4Q1adUzT06k rLvap2M8UJdSU4RIVi8OJ6jzSBpltPUQejSXImRhxdw4TuBdWO11sKYMvguAbp/VmzYc E4Iw== 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=jdBUUMv99kj0cqC35xVQ0vJ+lTbAYnC4lk5/+dSwqX8=; b=Dje0VYu0IrZpPRbLt8b1LaXxmAjoahbe7Ba1ogM3cpIm3Av2CjWqsQ/hy7cPIyF9Dw Q/KcTjHbM3fbBRMcZdYYsME+lGHDBdY5jHYO4lTqLgTPHaBcx8KLxJ2LIGq/DnFQ60E9 ii8pNNzW4fJvvVqD87nSPFkWE0vLio6HzWCFcFi2kRRzEsP8BPmxPFyZjogZUdHRC67K PjdRIEqkhtVCA2kjjVuvvWg9uybNfJRIAI2WKcUzTSUUXisr7u4uJPYoctU22RI7ED9Y zCdy7jqWCFAqsp/w8wtqV2MEdGjZPv4alEaIjSr1qBCKsuaVcHLFf1NSRv8FBM9TwSEq oR5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@toxicpanda-com.20150623.gappssmtp.com header.s=20150623 header.b=y7nfCg4b; 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 d4si4125848pfr.82.2019.05.24.06.11.04; Fri, 24 May 2019 06:11:21 -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=y7nfCg4b; 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 S2403803AbfEXNHq (ORCPT + 99 others); Fri, 24 May 2019 09:07:46 -0400 Received: from mail-vk1-f195.google.com ([209.85.221.195]:36046 "EHLO mail-vk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391357AbfEXNHq (ORCPT ); Fri, 24 May 2019 09:07:46 -0400 Received: by mail-vk1-f195.google.com with SMTP id l199so2107357vke.3 for ; Fri, 24 May 2019 06:07:45 -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=jdBUUMv99kj0cqC35xVQ0vJ+lTbAYnC4lk5/+dSwqX8=; b=y7nfCg4b4hWh5cXtClN2G9IlPfZtmsJ3lCmnJcQFhJJFfR7Duny76GHmGWVmLX7JkN 4BQJt1/DlmVVHNx6yxD8f1v1vebpwhOW/ZIYNZ2RvPKxui5ELigztwF3+awy6EBQw7wE m3Y2E5XpbLeF2AxgqwDhp4aX77GeAAP51wkhJr9AxhH+GkIXWwNH8VLVQGaBoN8GvqUp A8Sh1fZjhD6lSYCc2m9pwMqc/p7T2nlHT50o9OXZ1RUVaIxCKjYUX676pmynjMX0a5ue bReHsYh0ssps55JEZQvYZbYbEun8Ea/68G3H264PjF491twDM4RQQrC4Rib1pUZoFXKT CZ7A== 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=jdBUUMv99kj0cqC35xVQ0vJ+lTbAYnC4lk5/+dSwqX8=; b=nIaRGOd+/H669H/0OVgpoomnVl96nd7uwkayNd3VBJtzC2m/tI3HdfpYQhr3wWTsZ/ Ci3lCrQiIvhrzIl+CKsEnDFevXj2/I2evyHw+cua1NfSmIWsDghjrkhoVAPaP3C+gSCI RaNub6cA5j3FDy1qyJhdRrmuIWIcXr9fJpFfGEWMp7zCby8NmDeilUbwIsq6vDNruONJ ri4oDSiak4FjA9jKT21acwhThFPg48ZvnT+nBM6M1H7nEV1wN7HhNCaMc1Rpom/b0iPh 9vFiM58fosjwAYjPTjQz3AHGqTLAEJPBecGpGsQYiBO+v6d02S4rl2DwXv6t3j4/UiF0 cQIQ== X-Gm-Message-State: APjAAAVujdCGjSmZGU9f93RDgS9Uax+Kvv0eEYffgFjKGiXkp35iZpND sIGmM5110+phC/MofmgUk1eSg60xqsdK1w== X-Received: by 2002:a1f:8d0b:: with SMTP id p11mr4674585vkd.31.1558703264670; Fri, 24 May 2019 06:07:44 -0700 (PDT) Received: from localhost ([2620:10d:c091:480::e914]) by smtp.gmail.com with ESMTPSA id v14sm815351vkd.4.2019.05.24.06.07.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 May 2019 06:07:43 -0700 (PDT) Date: Fri, 24 May 2019 09:07:42 -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 1/3] nbd: fix connection timed out error after reconnecting to server Message-ID: <20190524130740.zfypc2j3q5e3gryr@MacBook-Pro-91.local.dhcp.thefacebook.com> References: <1558691036-16281-1-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-1-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:54PM +0800, Yao Liu wrote: > Some I/O requests that have been sent succussfully but have not yet been > replied won't be resubmitted after reconnecting because of server restart, > so we add a list to track them. > > Signed-off-by: Yao Liu Nack, this is what the timeout stuff is supposed to handle. The commands will timeout and we'll resubmit them if we have alive sockets. Thanks, Josef