All of lore.kernel.org
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: Arnd Bergmann <arnd@arndb.de>
Cc: "Stephen Rothwell" <sfr@canb.auug.org.au>,
	CIFS <linux-cifs@vger.kernel.org>,
	"Linux-Next Mailing List" <linux-next@vger.kernel.org>,
	LKML <linux-kernel@vger.kernel.org>,
	"Paulo Alcantara" <palcantara@suse.de>,
	"Aurélien Aptel" <aaptel@suse.com>,
	"Steve French" <stfrench@microsoft.com>
Subject: Re: linux-next: build failure after merge of the y2038 tree
Date: Mon, 17 Dec 2018 16:25:43 -0600	[thread overview]
Message-ID: <CAH2r5mtzWrJqj6uVXO=QrY=WwrKAWfrwqf-3yz1PcLm27r0XMg@mail.gmail.com> (raw)
In-Reply-To: <CAK8P3a3LaRt8Gszbj2QYJhERKS=T3u=fzPTXaELW4a=BJDNnzA@mail.gmail.com>

Pushed to cifs-2.6.git for-next (after minor commit description text
cleanup and adding acked-by and reviewed-by)

Paulo/Aurelien,
Let me know your thoughts about Arnd's additional comments which were
interesting.

On Mon, Dec 17, 2018 at 6:49 AM Arnd Bergmann <arnd@arndb.de> wrote:
>
> On Mon, Dec 17, 2018 at 10:11 AM Stephen Rothwell <sfr@canb.auug.org.au> wrote:
>
> > I have applied the following merge fix patch (better versions welcome):
> >
> > From: Stephen Rothwell <sfr@canb.auug.org.au>
> > Date: Mon, 17 Dec 2018 20:03:28 +1100
> > Subject: [PATCH] cifs: update for current_kernel_time64() removal
> >
> > Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
> > ---
>
> Your patch looks correct, and the conflict should be easy to
> resolve by Steve merging this into his tree, as
> ktime_get_coarse_real_ts64() is readily available in mainline
> kernels.
>
> Acked-by: Arnd Bergmann <arnd@arndb.de>
>
> >  fs/cifs/dfs_cache.c | 6 ++++--
> >  1 file changed, 4 insertions(+), 2 deletions(-)
> >
> > diff --git a/fs/cifs/dfs_cache.c b/fs/cifs/dfs_cache.c
> > index 70f9c9e2175c..d20cc94d7abd 100644
> > --- a/fs/cifs/dfs_cache.c
> > +++ b/fs/cifs/dfs_cache.c
> > @@ -103,7 +103,7 @@ static inline bool cache_entry_expired(const struct dfs_cache_entry *ce)
> >  {
> >         struct timespec64 ts;
> >
> > -       ts = current_kernel_time64();
> > +       ktime_get_coarse_real_ts64(&ts);
> >         return timespec64_compare(&ts, &ce->ce_etime) >= 0;
> >  }
> >
> > @@ -338,8 +338,10 @@ static inline struct timespec64 get_expire_time(int ttl)
> >                 .tv_sec = ttl,
> >                 .tv_nsec = 0,
> >         };
> > +       struct timespec64 now;
> >
> > -       return timespec64_add(current_kernel_time64(), ts);
> > +       ktime_get_coarse_real_ts64(&now);
> > +       return timespec64_add(now, ts);
> >  }
>
> In case efficiency is a concern: using ktime_t with
> ktime_get_coarse_real() may be much faster if we decide to
> abandon the coarse-grained timespec64 accessors in the future.
>
> Also, I wonder if the expiration here has to use CLOCK_REALTIME,
> since that is affected by leap second adjustment and
> clock_settime().
>
> In other modules, we usually concluded that it should be either
> CLOCK_MONOTONIC or CLOCK_BOOTTIME, depending on whether
> you want the expiration timer to keep ticking during suspend.
>
>         Arnd



-- 
Thanks,

Steve

  reply	other threads:[~2018-12-17 22:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17  9:11 linux-next: build failure after merge of the y2038 tree Stephen Rothwell
2018-12-17 12:49 ` Arnd Bergmann
2018-12-17 22:25   ` Steve French [this message]
  -- strict thread matches above, loose matches on Subject: below --
2019-11-14  4:38 Stephen Rothwell
2019-11-14 12:10 ` Arnd Bergmann
2018-03-27  7:26 Stephen Rothwell
2018-03-16  2:25 Stephen Rothwell
2018-03-16  2:25 ` Stephen Rothwell
2018-03-16  5:23 ` Deepa Dinamani
2018-03-16  8:14   ` Arnd Bergmann
2018-03-17 23:13     ` Deepa Dinamani

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH2r5mtzWrJqj6uVXO=QrY=WwrKAWfrwqf-3yz1PcLm27r0XMg@mail.gmail.com' \
    --to=smfrench@gmail.com \
    --cc=aaptel@suse.com \
    --cc=arnd@arndb.de \
    --cc=linux-cifs@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=palcantara@suse.de \
    --cc=sfr@canb.auug.org.au \
    --cc=stfrench@microsoft.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.