ref: 29f60cace1a71edd730c60ddac8dfbd962741038
parent: 2fb5fbbd73a1c861bdc7326ece8035ffb35f7093
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Tue Dec 22 11:29:55 EST 2020
kernel: avoid palloc lock during mmurelease() Previously, mmurelease() was always called with palloc spinlock held. This is unneccesary for some mmurelease() implementations as they wont release pages to the palloc pool. This change removes pagechainhead() and pagechaindone() and replaces them with just freepages() call, which aquires the palloc lock internally as needed. freepages() avoids holding the palloc lock while walking the linked list of pages, avoding some lock contention.