Baloo_file_extr inhibits suspend?

Hi everybody,
on my openSUSE Tumbleweed laptop, sometimes suspend does not work.
Recently I had such an episode and I was able to capture what seems like a relevant part of dmesg.
Here it is:

[Thu Jun 26 12:39:13 2025] [  T17221] PM: suspend exit
[Thu Jun 26 12:39:13 2025] [  T17221] PM: suspend entry (s2idle)
[Thu Jun 26 12:39:13 2025] [  T17221] Filesystems sync: 0.015 seconds
[Thu Jun 26 12:39:13 2025] [  T17221] Freezing user space processes
[Thu Jun 26 12:39:33 2025] [  T17221] Freezing user space processes failed after 20.005 seconds (1 tasks refusing to freeze, wq_busy=0):
[Thu Jun 26 12:39:33 2025] [  T17221] task:baloo_file_extr state:D stack:0     pid:7116  tgid:7116  ppid:3725   task_flags:0x400000 flags:0x00004006
[Thu Jun 26 12:39:33 2025] [  T17221] Call Trace:
[Thu Jun 26 12:39:33 2025] [  T17221]  <TASK>
[Thu Jun 26 12:39:33 2025] [  T17221]  __schedule+0x3eb/0x13d0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? set_next_entity+0xd6/0x1b0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? pick_next_task_fair+0x14a/0x340
[Thu Jun 26 12:39:33 2025] [  T17221]  schedule+0x27/0xd0
[Thu Jun 26 12:39:33 2025] [  T17221]  io_schedule+0x46/0x70
[Thu Jun 26 12:39:33 2025] [  T17221]  folio_wait_bit_common+0x110/0x300
[Thu Jun 26 12:39:33 2025] [  T17221]  ? xas_load+0xd/0xd0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? __pfx_wake_page_function+0x10/0x10
[Thu Jun 26 12:39:33 2025] [  T17221]  filemap_get_pages+0x703/0x720
[Thu Jun 26 12:39:33 2025] [  T17221]  filemap_read+0xde/0x3f0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? cp_statx+0x1bb/0x200
[Thu Jun 26 12:39:33 2025] [  T17221]  ? inode_security+0x22/0x60
[Thu Jun 26 12:39:33 2025] [  T17221]  ? selinux_file_permission+0x165/0x1a0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? security_file_permission+0x50/0xf0
[Thu Jun 26 12:39:33 2025] [  T17221]  vfs_read+0x271/0x350
[Thu Jun 26 12:39:33 2025] [  T17221]  ksys_read+0x6a/0xe0
[Thu Jun 26 12:39:33 2025] [  T17221]  do_syscall_64+0x7b/0x820
[Thu Jun 26 12:39:33 2025] [  T17221]  ? syscall_exit_to_user_mode+0x37/0x1c0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? do_syscall_64+0x87/0x820
[Thu Jun 26 12:39:33 2025] [  T17221]  ? do_sys_openat2+0x88/0xc0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? syscall_exit_to_user_mode+0x37/0x1c0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? do_syscall_64+0x87/0x820
[Thu Jun 26 12:39:33 2025] [  T17221]  ? syscall_exit_to_user_mode+0x37/0x1c0
[Thu Jun 26 12:39:33 2025] [  T17221]  ? do_syscall_64+0x87/0x820
[Thu Jun 26 12:39:33 2025] [  T17221]  ? irqentry_exit_to_user_mode+0x2c/0x1c0
[Thu Jun 26 12:39:33 2025] [  T17221]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[Thu Jun 26 12:39:33 2025] [  T17221] RIP: 0033:0x7f11fb4a30b2
[Thu Jun 26 12:39:33 2025] [  T17221] RSP: 002b:00007ffd6ba0f098 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
[Thu Jun 26 12:39:33 2025] [  T17221] RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f11fb4a30b2
[Thu Jun 26 12:39:33 2025] [  T17221] RDX: 0000000000004000 RSI: 0000557ff23c8d20 RDI: 0000000000000018
[Thu Jun 26 12:39:33 2025] [  T17221] RBP: 0000557ff24af680 R08: 0000000000000000 R09: 0000000000000000
[Thu Jun 26 12:39:33 2025] [  T17221] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000004000
[Thu Jun 26 12:39:33 2025] [  T17221] R13: 0000000000004000 R14: 0000557ff23c8d20 R15: 0000000000000018
[Thu Jun 26 12:39:33 2025] [  T17221]  </TASK>
[Thu Jun 26 12:39:33 2025] [  T17221] OOM killer enabled.
[Thu Jun 26 12:39:33 2025] [  T17221] Restarting tasks ... done.
[Thu Jun 26 12:39:33 2025] [  T17221] random: crng reseeded on system resumption
[Thu Jun 26 12:39:33 2025] [  T17221] PM: suspend exit
[Thu Jun 26 12:40:03 2025] [   T1505] input: JBL TUNE510BT (AVRCP) as /devices/virtual/input/input41
[Thu Jun 26 12:40:31 2025] [  T19461] loop0: detected capacity change from 0 to 8
[Thu Jun 26 12:40:31 2025] [  T19461] SELinux: security_context_str_to_sid (system_u:object_r:snappy_snap_t:s0) failed with errno=-22
[Thu Jun 26 12:41:03 2025] [  T17275] BTRFS info (device dm-2): qgroup scan completed (inconsistency flag cleared)

From what I understand, it seems baloo_file_extr is inhibiting suspend.
How can I avoid this?
Should I report this as a bug in baloo?

Thank you in advance
Cris

i does appear to be a bug and should be reported with the details you have here.

in the meantime i would check my balooctl config list hidden and make sure it is set to “no” so it’s not trying to index itself or something else that’s keeping it from sleeping.

i would also review my folders and be sure to exclude anything that might be in flux on a random basis.

you can also just disable and purge the index using the balooctl command and start over if you need to.