aboutsummaryrefslogtreecommitdiffstats
path: root/fs/file_table.c
diff options
context:
space:
mode:
authorHaifeng Xu <[email protected]>2024-07-26 03:05:25 +0000
committerChristian Brauner <[email protected]>2024-08-19 11:45:02 +0000
commitc393eaa85349941badf3ce5f087400dbaf3bbe02 (patch)
treee191d567644cfb12afcf720d93a2338475684e89 /fs/file_table.c
parentMerge patch series "Add an fcntl() to check file creation" (diff)
downloadkernel-c393eaa85349941badf3ce5f087400dbaf3bbe02.tar.gz
kernel-c393eaa85349941badf3ce5f087400dbaf3bbe02.zip
fs: don't flush in-flight wb switches for superblocks without cgroup writeback
When deactivating any type of superblock, it had to wait for the in-flight wb switches to be completed. wb switches are executed in inode_switch_wbs_work_fn() which needs to acquire the wb_switch_rwsem and races against sync_inodes_sb(). If there are too much dirty data in the superblock, the waiting time may increase significantly. For superblocks without cgroup writeback such as tmpfs, they have nothing to do with the wb swithes, so the flushing can be avoided. Signed-off-by: Haifeng Xu <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Suggested-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
Diffstat (limited to 'fs/file_table.c')
0 files changed, 0 insertions, 0 deletions