]> www.infradead.org Git - users/willy/linux.git/commit
Convert rw_semaphore to use waitlists wlist
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 11 Jun 2021 14:36:16 +0000 (10:36 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Fri, 11 Jun 2021 15:33:22 +0000 (11:33 -0400)
commit71af1fae7e5839144ce9cad8d01cbf4d83d2ebbe
tree3fd3f257089f388a5e2a97509e40cab1f3ea3568
parentebbc636e167941e372bfeac6117c823a52f885a2
Convert rw_semaphore to use waitlists

Saves one pointer per rw_semaphore, which shrinks struct inode by 16 bytes
(as it contains two rw_semaphores), anon_vma by 8 bytes, mm_struct by 8
bytes and the superblock by 8 bytes.  Individual filesystem per-inode
data structures also often contain one or more rw_semaphore, so the
savings may be even larger.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
include/linux/rwsem.h
kernel/locking/rwsem.c