All of lore.kernel.org
 help / color / mirror / Atom feed
From: Shaoying Xu <shaoyi@amazon.com>
To: Greg KH <greg@kroah.com>
Cc: <stable@vger.kernel.org>
Subject: Re: [PATCH 5.4] ext4: fix lazy initialization next schedule time computation in more granular unit
Date: Wed, 17 Nov 2021 23:20:36 +0000	[thread overview]
Message-ID: <20211117232036.GA14594@amazon.com> (raw)
In-Reply-To: <YZVDshkxnSxnIdfq@kroah.com>

Thank you! Can the patch also be added to kernel 4.19 and 4.14 please? 

On Wed, Nov 17, 2021 at 07:02:26PM +0100, Greg KH wrote:
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe.
> 
> 
> 
> On Mon, Nov 15, 2021 at 09:42:12PM +0000, Shaoying Xu wrote:
> > commit 39fec6889d15a658c3a3ebb06fd69d3584ddffd3 upstream.
> >
> > Ext4 file system has default lazy inode table initialization setup once
> > it is mounted. However, it has issue on computing the next schedule time
> > that makes the timeout same amount in jiffies but different real time in
> > secs if with various HZ values. Therefore, fix by measuring the current
> > time in a more granular unit nanoseconds and make the next schedule time
> > independent of the HZ value.
> >
> > Fixes: bfff68738f1c ("ext4: add support for lazy inode table initialization")
> > Signed-off-by: Shaoying Xu <shaoyi@amazon.com>
> > Cc: stable@vger.kernel.org
> > Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> > Link: https://lore.kernel.org/r/20210902164412.9994-2-shaoyi@amazon.com
> > Signed-off-by: Theodore Ts'o <tytso@mit.edu>
> > ---
> > Member lr_sbi was removed from the struct ext4_li_request since kernel 5.9
> > so the way to access s_li_wait_mult was also changed. To adapt to the old
> > kernel versions, adjust the upstream fix by following the old ext4_li_request
> > strucutre.
> 
> Now queued up, thanks.
> 
> greg k-h

  reply	other threads:[~2021-11-17 23:20 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-15 21:42 [PATCH 5.4] ext4: fix lazy initialization next schedule time computation in more granular unit Shaoying Xu
2021-11-17 18:02 ` Greg KH
2021-11-17 23:20   ` Shaoying Xu [this message]
2021-11-18  8:20     ` Greg KH

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=20211117232036.GA14594@amazon.com \
    --to=shaoyi@amazon.com \
    --cc=greg@kroah.com \
    --cc=stable@vger.kernel.org \
    /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.