summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorShaoying Xu <shaoyi@amazon.com>2021-09-02 16:44:12 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-11-26 11:36:18 +0100
commit0898c7a70aae87eeec6b00f03e0bb592fefd295f (patch)
tree9fb0954a70fc638e4c69f41a832f320962d935db /security
parenta57977b0b8d963a92d482ea25ad85fe6369071ad (diff)
ext4: fix lazy initialization next schedule time computation in more granular unit
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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'security')
0 files changed, 0 insertions, 0 deletions