summaryrefslogtreecommitdiffstats
path: root/block/blk-stat.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2022-01-07 20:04:55 +0100
committerMatthew Wilcox (Oracle) <willy@infradead.org>2022-03-21 17:56:35 +0100
commit59409373f60a0a493fe2a1b85dc8c6299c4fef37 (patch)
tree359beb8af1ae79fce424d7a2cb6be59280d700dd /block/blk-stat.c
parentmm/gup: Remove an assumption of a contiguous memmap (diff)
downloadlinux-59409373f60a0a493fe2a1b85dc8c6299c4fef37.tar.xz
linux-59409373f60a0a493fe2a1b85dc8c6299c4fef37.zip
mm/gup: Handle page split race more efficiently
If we hit the page split race, the current code returns NULL which will presumably trigger a retry under the mmap_lock. This isn't necessary; we can just retry the compound_head() lookup. This is a very minor optimisation of an unlikely path, but conceptually it matches (eg) the page cache RCU-protected lookup. Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: John Hubbard <jhubbard@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Diffstat (limited to 'block/blk-stat.c')
0 files changed, 0 insertions, 0 deletions