Re: [PATCHv2 1/1] fs: ext4: Don't use CMA for buffer_head

From: Theodore Ts'o
Date: Thu Nov 07 2024 - 10:14:42 EST



On Wed, 04 Sep 2024 15:53:00 +0800, zhaoyang.huang wrote:
> cma_alloc() keep failed in our system which thanks to a jh->bh->b_page
> can not be migrated out of CMA area[1] as the jh has one cp_transaction
> pending on it because of j_free > j_max_transaction_buffers[2][3][4][5][6].
> We temporarily solve this by launching jbd2_log_do_checkpoint forcefully
> somewhere. Since journal is common mechanism to all JFSs and
> cp_transaction has a little fewer opportunity to be launched, the
> cma_alloc() could be affected under the same scenario. This patch
> would like to have buffer_head of ext4 not use CMA pages when doing
> sb_getblk.
>
> [...]

Applied, thanks!

[1/1] fs: ext4: Don't use CMA for buffer_head
commit: ef60f4aab81d2ce5984135e6af1abcce56a425d7

Best regards,
--
Theodore Ts'o <tytso@xxxxxxx>