History log of /freebsd-14.2/sys/compat/linuxkpi/common/src/linux_shrinker.c (Results 1 – 7 of 7)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0, release/14.0.0
# 685dc743 16-Aug-2023 Warner Losh <[email protected]>

sys: Remove $FreeBSD$: one-line .c pattern

Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/


# 95ee2897 16-Aug-2023 Warner Losh <[email protected]>

sys: Remove $FreeBSD$: two-line .h pattern

Remove /^\s*\*\n \*\s+\$FreeBSD\$$\n/


Revision tags: release/13.2.0
# 83636727 13-Feb-2023 Jean-Sébastien Pédron <[email protected]>

linuxkpi: Add `synchronize_shrinkers()`

It takes the lock and release it immediately to make sure no shrinkers
are running in parallel.

Reviewed by: manu
Approved by: manu
Differential Revision: ht

linuxkpi: Add `synchronize_shrinkers()`

It takes the lock and release it immediately to make sure no shrinkers
are running in parallel.

Reviewed by: manu
Approved by: manu
Differential Revision: https://reviews.freebsd.org/D38565

show more ...


Revision tags: release/12.4.0
# 29d5f0c1 17-May-2022 Vladimir Kondratyev <[email protected]>

LinuxKPI: Convert lkpi-shrinker lock to sx.

This fixes "might_sleep() with the following non-sleepable locks held:
exclusive sleep mutex lkpi-shrinker" warnings.

MFC after: 1 week
Reviewed by: hsel

LinuxKPI: Convert lkpi-shrinker lock to sx.

This fixes "might_sleep() with the following non-sleepable locks held:
exclusive sleep mutex lkpi-shrinker" warnings.

MFC after: 1 week
Reviewed by: hselasky, manu
Differential Revision: https://reviews.freebsd.org/D35047

show more ...


Revision tags: release/13.1.0, release/12.3.0
# 2fe9ea5d 29-Sep-2021 Vladimir Kondratyev <[email protected]>

LinuxKPI: allocate current before taking shrinkers lock

This fixes following warnings when shrinkers are invoked first time:

uma_zalloc_debug: zone "lkpicurr" with the following non-sleepable
locks

LinuxKPI: allocate current before taking shrinkers lock

This fixes following warnings when shrinkers are invoked first time:

uma_zalloc_debug: zone "lkpicurr" with the following non-sleepable
locks held: exclusive sleep mutex lkpi-shrinker (lkpi-shrinker)

uma_zalloc_debug: zone "lkpimm" with the following non-sleepable locks
held: exclusive sleep mutex lkpi-shrinker (lkpi-shrinker)

Reviewed by: hselasky, manu
MFC after: 2 weeks
Differential revision: https://reviews.freebsd.org/D32066

show more ...


Revision tags: release/13.0.0
# 4af93235 18-Jan-2021 Mark Johnston <[email protected]>

linuxkpi: Fix the shrinker scan target

Use the number of items scanned to control the duration of the shrink
loop. Otherwise, if a consumer like TTM is not able to free the number
of items requeste

linuxkpi: Fix the shrinker scan target

Use the number of items scanned to control the duration of the shrink
loop. Otherwise, if a consumer like TTM is not able to free the number
of items requested for some reason, the shrinker keeps looping forever.

Reviewed by: manu
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28224

show more ...


# 2c95fb75 22-Dec-2020 Emmanuel Vadot <[email protected]>

linuxkpi: Add shrinker support

A driver can register a shrinker that will be called when the kernel
wants to free some memory.
Add support for that in linuxkpi and call the registered shrinkers
when

linuxkpi: Add shrinker support

A driver can register a shrinker that will be called when the kernel
wants to free some memory.
Add support for that in linuxkpi and call the registered shrinkers
when the lowmem event is triggered.

Reviewed by: bz
Differential Revision: https://reviews.freebsd.org/D27728

show more ...