diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2025-03-27 10:06:10 -0400 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2025-04-07 09:37:16 +0200 |
commit | 559b3bbfa978ce3b23dc9c52d09a0eddca52c439 (patch) | |
tree | 1489f8567bbb6a1fceaf01f1a963bb394ab0a07d /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 0af2f6be1b4281385b618cb86ad946eded089ac8 (diff) |
locking/percpu-rwsem: add freezable alternative to down_read
Percpu-rwsems are used for superblock locking. However, we know the
read percpu-rwsem we take for sb_start_write() on a frozen filesystem
needs not to inhibit system from suspending or hibernating. That
means it needs to wait with TASK_UNINTERRUPTIBLE | TASK_FREEZABLE.
Introduce a new percpu_down_read_freezable() that allows us to control
whether TASK_FREEZABLE is added to the wait flags.
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Link: https://lore.kernel.org/r/20250327140613.25178-2-James.Bottomley@HansenPartnership.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions