Project

General

Profile

Bug #9018

Replace kmem_cache_reap_now() with kmem_cache_reap_soon()

Added by Dan McDonald over 1 year ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
kernel
Start date:
2018-02-02
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

To prevent kmem_cache reaping from blocking other system resources, turn kmem_cache_reap_now() (which blocks) into kmem_cache_reap_soon(). Callers to kmem_cache_reap_soon() should use kmem_cache_reap_active(), which exploits #9017's new taskq_empty().

History

#1

Updated by Electric Monk over 1 year ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit 36a64e62848b51ac5a9a5216e894ec723cfef14e

commit  36a64e62848b51ac5a9a5216e894ec723cfef14e
Author: Tim Kordas <tim.kordas@joyent.com>
Date:   2018-02-05T18:17:49.000Z

    9018 Replace kmem_cache_reap_now() with kmem_cache_reap_soon()
    Reviewed by: Bryan Cantrill <bryan@joyent.com>
    Reviewed by: Dan McDonald <danmcd@joyent.com>
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Reviewed by: Yuri Pankov <yuripv@yuripv.net>

Also available in: Atom PDF