On 2020/6/11 下午7:20, David Sterba wrote: > On Thu, Jun 11, 2020 at 06:29:34PM +0800, Greed Rong wrote: >> Hi, >> I have got this error several times. Are there any suggestions to avoid this? >> >> # dmesg >> [7142286.563596] ------------[ cut here ]------------ >> [7142286.564499] BTRFS: Transaction aborted (error -24) > > EMFILE 24 /* Too many open files */ > > you can increase the open file limit but it's strange that this happens, > first time I see this. Not something from btrfs code, thus it must come from the VFS/MM code. The offending abort transaction is from btrfs_read_fs_root_no_name(), which is updated to btrfs_get_fs_root() in upstream kernel. Overall, it's not much different between the upstream and the 5.0.10 kernel. But with latest btrfs_get_fs_root(), after a quick glance, there isn't any obvious location to introduce the EMFILE error. Any extra info about the worload to trigger the bug? Thanks, Qu > >> 5.0.10-050010-generic #201904270832 > > 5.0.10 is quite old, but that shouldn't affect it. >
Attachment:
signature.asc
Description: OpenPGP digital signature
