android_kernel_motorola_sm6375/fs/ext4
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Jinke Han 1211121f0e ext4: place buffer head allocation before handle start
commit d1052d236eddf6aa851434db1897b942e8db9921 upstream.

In our product environment, we encounter some jbd hung waiting handles to
stop while several writters were doing memory reclaim for buffer head
allocation in delay alloc write path. Ext4 do buffer head allocation with
holding transaction handle which may be blocked too long if the reclaim
works not so smooth. According to our bcc trace, the reclaim time in
buffer head allocation can reach 258s and the jbd transaction commit also
take almost the same time meanwhile. Except for these extreme cases,
we often see several seconds delays for cgroup memory reclaim on our
servers. This is more likely to happen considering docker environment.

One thing to note, the allocation of buffer heads is as often as page
allocation or more often when blocksize less than page size. Just like
page cache allocation, we should also place the buffer head allocation
before startting the handle.

Cc: [email protected]
Signed-off-by: Jinke Han <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Theodore Ts'o <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
2022-10-26 13:22:18 +02:00
..
acl.c
acl.h
balloc.c ext4: shrink race window in ext4_should_retry_alloc() 2021-04-07 14:47:38 +02:00
bitmap.c
block_validity.c
dir.c ext4: fix potential infinite loop in ext4_dx_readdir() 2021-10-06 15:42:37 +02:00
ext4.h ext4: fix use-after-free in ext4_search_dir 2022-04-27 13:50:50 +02:00
ext4_extents.h
ext4_jbd2.c
ext4_jbd2.h
extents.c ext4: fix bug in extents parsing when eh_entries == 0 and eh_depth > 0 2022-09-28 11:04:09 +02:00
extents_status.c ext4: remove check for zero nr_to_scan in ext4_es_scan() 2021-07-14 16:53:03 +02:00
extents_status.h
file.c ext4: avoid crash when inline data creation follows DIO write 2022-10-26 13:22:18 +02:00
fsmap.c
fsmap.h
fsync.c
hash.c
ialloc.c ext4: make directory inode spreading reflect flexbg size 2022-09-28 11:04:11 +02:00
indirect.c
inline.c ext4: correct max_inline_xattr_value_size computing 2022-08-25 11:18:13 +02:00
inode.c ext4: place buffer head allocation before handle start 2022-10-26 13:22:18 +02:00
ioctl.c ext4: avoid trim error on fs with small groups 2022-01-27 09:19:37 +01:00
Kconfig
Makefile
mballoc.c ext4: fix bug_on ext4_mb_use_inode_pa 2022-06-22 14:11:23 +02:00
mballoc.h
migrate.c ext4: recover csum seed of tmp_inode after migrating to extents 2022-08-25 11:17:59 +02:00
mmp.c
move_extent.c
namei.c ext4: avoid remove directory when directory is corrupted 2022-08-25 11:18:35 +02:00
page-io.c ext4: fix symlink file size not match to file content 2022-04-27 13:50:50 +02:00
readpage.c
resize.c ext4: avoid resizing to a partial cluster size 2022-08-25 11:18:35 +02:00
super.c ext4: make ext4_lazyinit_thread freezable 2022-10-26 13:22:18 +02:00
symlink.c ext4: report correct st_size for encrypted symlinks 2021-09-12 08:56:38 +02:00
sysfs.c ext4: shrink race window in ext4_should_retry_alloc() 2021-04-07 14:47:38 +02:00
truncate.h
verity.c ext4: fix error handling in ext4_end_enable_verity() 2021-05-26 12:05:21 +02:00
xattr.c ext4: fix use-after-free in ext4_xattr_set_entry 2022-08-25 11:18:12 +02:00
xattr.h ext4: add EXT4_INODE_HAS_XATTR_SPACE macro in xattr.h 2022-08-25 11:18:12 +02:00
xattr_security.c
xattr_trusted.c
xattr_user.c