Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp406989ybi; Sat, 15 Jun 2019 03:39:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqy7YpUxIM2D6EU5CeyC/L1wUmsBsQ5rDUYh97e99hCp2zfXgbrFeDPlYkEe1eLPD1DIyxLT X-Received: by 2002:a62:2582:: with SMTP id l124mr80417579pfl.43.1560595175108; Sat, 15 Jun 2019 03:39:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1560595175; cv=none; d=google.com; s=arc-20160816; b=PaABgx3kP261ON4M/+jcC+eoZ+uUbHJtnfOj0CunCL2mCVMMKZlyC9Pv8m3WdvlUI5 MzspMlcQtovM3KlTRXwRu8EnTL5an5XCeqOuwGqDrAvmK55Qe76n2gBdxz4YbhS8PbWW o9c4SXPT/hcRIyGGexCOA8ja/yUKSRgaujNpJnBR5Q2haaLUTXH/XgGZXqfHf/dK3hpT WZ+oiz6IgMi3hgcdc93xwnNxpiX8mT2dRPQMx6K5makIRgXxQgPqdoGQY611IZYPwpje RWM5lxKNAUCRKSs3+plMzDgi1r/qISx+MC/099U/bjk8LsYew/WvcSfLbv4/MLcP1dy+ +g1A== 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:dkim-filter; bh=BrFDLo2ZOjXXbFx2tmfpuY+zFkPg7S+XGCSzq+T17PA=; b=cASpA/LHoze8NMmMkKAdKF2rgAMwv+YgqpGdJm7yZIPtJc8r7sLLqy2u+R1o1Uu/OE qXn7qMatPVB+UkYFhO8H4XfI2bid2UemjY906Z3TRvVh50yfzvfzE01UgvymK+b/NNh7 SbxhCAQiVzPWSfy7dOgtC7nMVQ+FpkCt5UEz1sXZfxqLtj3ViwpRbcd/7Ld9MjtBi3V5 jhCaeDW82HAlOBlP7Jxgf89Fuw9riWM2pcvRZ4IolGmyrEGgrXijCGVgnzfBabpVxJGH qTFiKqJiI2VljIioqQKm4EWVVpnmipLhuRd+sWauU5t1PMmzjKNIUxqtdm35KuyQ/mGH mZQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-watchdog.org header.s=odk20180602 header.b=a33jSYKH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=linux-watchdog.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32si4154249pld.236.2019.06.15.03.39.20; Sat, 15 Jun 2019 03:39:35 -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=@linux-watchdog.org header.s=odk20180602 header.b=a33jSYKH; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=linux-watchdog.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726686AbfFOKiu (ORCPT + 99 others); Sat, 15 Jun 2019 06:38:50 -0400 Received: from www.linux-watchdog.org ([185.87.125.42]:37242 "EHLO www.linux-watchdog.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725944AbfFOKiu (ORCPT ); Sat, 15 Jun 2019 06:38:50 -0400 Received: by www.linux-watchdog.org (Postfix, from userid 500) id E075540909; Sat, 15 Jun 2019 12:02:30 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 www.linux-watchdog.org E075540909 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-watchdog.org; s=odk20180602; t=1560592950; bh=x4moI263mVJ9xXic7CfPOGIPWBoqDc8/6cZrMgLHrrk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=a33jSYKHPmrGKL4bHC44S8kGiyIC/LW5QIg3kRKNEItop/qtctXJF40ON/1zXd/4j BgH7YfgZUmz3jFwYewwboPMspfWmDzvzr3h++8zpXPrvz64egaHFHXVSWSbC+y5WIo q17kUKzN8DhrwbU3GrwhWIEE2wagNL4K5wufWaEg= Date: Sat, 15 Jun 2019 12:02:30 +0200 From: Wim Van Sebroeck To: Rasmus Villemoes Cc: Guenter Roeck , "linux-watchdog@vger.kernel.org" , Wim Van Sebroeck , Jonathan Corbet , "linux-kernel@vger.kernel.org" , "linux-doc@vger.kernel.org" , Esben Haabendal , Jerry Hoemann , Rasmus Villemoes Subject: Re: [PATCH v10 3/3] watchdog: make the device time out at open_deadline when open_timeout is used Message-ID: <20190615100230.GA10480@www.linux-watchdog.org> References: <20190605140628.618-1-rasmus.villemoes@prevas.dk> <20190605140628.618-4-rasmus.villemoes@prevas.dk> <20190607183827.GA32475@roeck-us.net> <56280052-9437-9813-a24e-125abb876762@prevas.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56280052-9437-9813-a24e-125abb876762@prevas.dk> User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rasmus, > > On Wed, Jun 05, 2019 at 02:06:44PM +0000, Rasmus Villemoes wrote: > >> When the watchdog device is not open by userspace, the kernel takes > >> care of pinging it. When the open_timeout feature is in use, we should > >> ensure that the hardware fires close to open_timeout seconds after the > >> kernel has assumed responsibility for the device. > >> > >> To do this, simply reuse the logic that is already in place for > >> ensuring the same thing when userspace is responsible for regularly > >> pinging the device: > >> > >> - When watchdog_active(wdd), this patch doesn't change anything. > >> > >> - When !watchdoc_active(wdd), the "virtual timeout" should be taken to > > > > s/watchdoc_active/watchdog_active/ > > > > otherwise > > > > Reviewed-by: Guenter Roeck > > Thanks! Wim, can you fix up if/when applying, or do you prefer I resend? I'll fix up when applying. No need to resend a new patch for that. Kind regards, Wim.