Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932579AbdHVLOr (ORCPT ); Tue, 22 Aug 2017 07:14:47 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:17162 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932488AbdHVLOo (ORCPT ); Tue, 22 Aug 2017 07:14:44 -0400 X-IronPort-AV: E=Sophos;i="5.41,411,1498521600"; d="scan'208";a="306324905" Date: Tue, 22 Aug 2017 11:14:34 +0000 From: Vallish Vaidyeshwara To: Cong Wang CC: David Miller , , "Linux Kernel Network Developers" , LKML , Eduardo Valentin , Subject: Re: [PATCH RESEND 1/2] net: enable high resolution timer mode to timeout datagram sockets Message-ID: <20170822111433.GA102755@amazon.com> References: <1503081850-10671-1-git-send-email-vallish@amazon.com> <1503081850-10671-2-git-send-email-vallish@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 669 Lines: 21 On Mon, Aug 21, 2017 at 01:10:34PM -0700, Cong Wang wrote: > On Fri, Aug 18, 2017 at 11:44 AM, Vallish Vaidyeshwara > wrote: > > - *timeo_p = schedule_timeout(*timeo_p); > > + /* Wait using highres timer */ > > + expires = ktime_add_ns(ktime_get(), jiffies_to_nsecs(*timeo_p)); > > + pre_sched_time = jiffies; > > + if (schedule_hrtimeout(&expires, HRTIMER_MODE_ABS)) > Hello Cong, > Does this work with MAX_SCHEDULE_TIMEOUT too?? > Thanks for pointing out MAX_SCHEDULE_TIMEOUT. I have made minor change to accommodate MAX_SCHEDULE_TIMEOUT and will send out next version of the patch for review. Thanks. -Vallish