summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/call-graph-from-sql.py
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2017-09-02 19:53:41 +0300
committerDarrick J. Wong <darrick.wong@oracle.com>2017-09-03 20:40:45 +0300
commit8353a814f2518dcfa79a5bb77afd0e7dfa391bb1 (patch)
treec0acfb3c83991b4fba5b98a907a1cba0fe75310c /tools/perf/scripts/python/call-graph-from-sql.py
parentdd60687ee541ca3f6df8758f38e6f22f57c42a37 (diff)
downloadlinux-8353a814f2518dcfa79a5bb77afd0e7dfa391bb1.tar.xz
xfs: open code end_buffer_async_write in xfs_finish_page_writeback
Our loop in xfs_finish_page_writeback, which iterates over all buffer heads in a page and then calls end_buffer_async_write, which also iterates over all buffers in the page to check if any I/O is in flight is not only inefficient, but also potentially dangerous as end_buffer_async_write can cause the page and all buffers to be freed. Replace it with a single loop that does the work of end_buffer_async_write on a per-page basis. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions