Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2004773pxk; Mon, 14 Sep 2020 02:04:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTa9vK/B9hSRqQFjYoTcvuWOTl9KhttuucZJ/v03V/GgU/yeEvcCA6WAP5fefg/HBKOXSs X-Received: by 2002:a05:6402:1515:: with SMTP id f21mr16650356edw.175.1600074265729; Mon, 14 Sep 2020 02:04:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600074265; cv=none; d=google.com; s=arc-20160816; b=Jkmvf1YrEgfQTLQLi9r7/u5EXRJoduJkAnCFaP27PC6rs7sfRnmFkt5v/wFwvK0EwM CIpuc9XX+cc6Xi+i9XYUb/P0GpNT2gsEpq+8IJd7DZcMjbuVROpMkMKkuXe2mSxxKG4r 8aBYxQiIWPw+jCIHrAqMeMAnKncyp6ATDDqU0ucPKZeiRrYLQVfl5YT/KRNKlYLZ1mSO Kw92xbadT6r7D/RVasdzv3lPNdZ80e65TqpggQreRNMi88FqKbsodnm4lY6IrVDaW6+u NtNxUcOsNfpxO933UUK72HBsAqEj4ShdoOYl17a/XLPC09QxEGQNnUZDjJVuM1v55Ijq hE4Q== 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; bh=BA59uvNwWeLbW3/gARBLS+3iLS+i0V5L1/WrQ9lOZOQ=; b=Cw51m+EtXyr/Zy185x1fwPvjgQXuonOFyeu2oz2eIy+q+jtJpViR44OaTcUhtyy8rO PgxuSTGgnVA+3laAoLeh+Em/FamMvDhVhulyTL5mV0BfcW6CggxEEgKyeu9kjZ/+2Obi 9Sx3KlfdphkQdwpnF2giB4iqIQLgEk8F9jAOD2bpPyXTkRt9ba9Dq4RaLWrHj+2LyPLQ Yle37vz3b1UEynnM4iRb7d9KAPDPKPwZFt6XUz773Y3kmXstVlV5FH/clCiJWv/geVB/ uS6YzvLc1rDZefVJHtb/4Pv3Xpeu1dEae8Za9mRe5NCKYK5QPqKUI8GVZfmU3FV+aY3C 1IiA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y25si6916403edt.563.2020.09.14.02.04.03; Mon, 14 Sep 2020 02:04:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726184AbgINJDF (ORCPT + 99 others); Mon, 14 Sep 2020 05:03:05 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:43052 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726123AbgINJDD (ORCPT ); Mon, 14 Sep 2020 05:03:03 -0400 Received: by mail-wr1-f65.google.com with SMTP id k15so17784931wrn.10; Mon, 14 Sep 2020 02:03:01 -0700 (PDT) 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=BA59uvNwWeLbW3/gARBLS+3iLS+i0V5L1/WrQ9lOZOQ=; b=e5q7gbZmjmh2u6wBI6hRIkqvTbxyYVnmDCGT2JyhtL3YPmrzjhcq+EZGpiQy+FMxhB IqGUk10LeL8AuQTiDmeeZMvlzY/hom0ua+aEHtDANGA/MHKW3iCuUCzcR4RbfihUvam6 Uf30g5ZDyTlD5ssMRrFX43yWUCThgnBJ+gEV7EbjoOAVl3ly2xLmvEdNBX7K/Spt+OEO a6rVjnEkuG+GxNUSjRmVOoO0LThcA2MD6+BSZesqCmmgSEzSmr5CuMagkuzTolDBhBSe UclGsbIWDNgjTT/rF54lOm9aB5kIhGL0SkZhkcj8SK2XJdk4FpoAusdTHGlwDJT5PvTI 5/wQ== X-Gm-Message-State: AOAM532rWqfnc59hQjdaL2umZOysukWOoRSTi7SMUPVlfCQSJNGR0iX8 KxsP1EsND0ph0+dXrnVy87s= X-Received: by 2002:a5d:6406:: with SMTP id z6mr14264256wru.133.1600074181226; Mon, 14 Sep 2020 02:03:01 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id t6sm22308511wre.30.2020.09.14.02.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 02:03:00 -0700 (PDT) Date: Mon, 14 Sep 2020 09:02:59 +0000 From: Wei Liu To: Dexuan Cui Cc: Michael Kelley , "linux-kernel@vger.kernel.org" , vkuznets , KY Srinivasan , Stephen Hemminger , "wei.liu@kernel.org" , "linux-hyperv@vger.kernel.org" Subject: Re: [PATCH 1/1] Drivers: hv: vmbus: Add timeout to vmbus_wait_for_unload Message-ID: <20200914090259.nhxxezpljbrvq3xo@liuwe-devbox-debian-v2> References: <1600026449-23651-1-git-send-email-mikelley@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 13, 2020 at 07:56:30PM +0000, Dexuan Cui wrote: > > From: linux-hyperv-owner@vger.kernel.org > > On Behalf Of Michael Kelley > > Sent: Sunday, September 13, 2020 12:47 PM > > > > vmbus_wait_for_unload() looks for a CHANNELMSG_UNLOAD_RESPONSE > > message > > coming from Hyper-V. But if the message isn't found for some reason, > > the panic path gets hung forever. Add a timeout of 10 seconds to prevent > > this. > > > > Fixes: 415719160de3 ("Drivers: hv: vmbus: avoid scheduling in interrupt > > context in vmbus_initiate_unload()") > > Signed-off-by: Michael Kelley > > Reviewed-by: Dexuan Cui LGTM. Applied to hyperv-fixes. Thanks. Wei.