Skip to content

Commit

Permalink
sched/psi: export psi_memstall_{enter,leave}
Browse files Browse the repository at this point in the history
To properly account for all refaults from file system logic, file systems
need to call psi_memstall_enter directly, so export it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: https://lore.kernel.org/r/20220915094200.139713-3-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
  • Loading branch information
Christoph Hellwig authored and Jens Axboe committed Sep 20, 2022
1 parent 1760424 commit 527eb45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/sched/psi.c
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,7 @@ void psi_memstall_enter(unsigned long *flags)

rq_unlock_irq(rq, &rf);
}
EXPORT_SYMBOL_GPL(psi_memstall_enter);

/**
* psi_memstall_leave - mark the end of an memory stall section
Expand Down Expand Up @@ -950,6 +951,7 @@ void psi_memstall_leave(unsigned long *flags)

rq_unlock_irq(rq, &rf);
}
EXPORT_SYMBOL_GPL(psi_memstall_leave);

#ifdef CONFIG_CGROUPS
int psi_cgroup_alloc(struct cgroup *cgroup)
Expand Down

0 comments on commit 527eb45

Please sign in to comment.