]> www.infradead.org Git - users/willy/pagecache.git/commit
iomap: Protect read_bytes_pending with the state_lock
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 29 Aug 2023 15:58:06 +0000 (11:58 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Wed, 4 Oct 2023 01:06:06 +0000 (21:06 -0400)
commitac05510ec7a4e7c0b745b44ceabef940f3d95cb9
tree890ba4a944d0b96707aaac59991c48b8197a4587
parentd9aaf3c7d1b39cf2eceecd58e041fcd6655196b6
iomap: Protect read_bytes_pending with the state_lock

Perform one atomic operation (acquiring the spinlock) instead of
two (spinlock & atomic_sub) per read completion.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
fs/iomap/buffered-io.c