aboutsummaryrefslogtreecommitdiff
path: root/fs/mpage.c
diff options
context:
space:
mode:
authorGravatar Stefan Roesch <shr@fb.com> 2022-06-23 10:51:48 -0700
committerGravatar Jens Axboe <axboe@kernel.dk> 2022-07-24 18:39:31 -0600
commitcae2de6978915991a564e3c5c69b66b629c031af (patch)
tree0cacc590f8d266b4e4957a8f1d9ad56c30fa9a8c /fs/mpage.c
parentiomap: Add flags parameter to iomap_page_create() (diff)
downloadlinux-cae2de6978915991a564e3c5c69b66b629c031af.tar.gz
linux-cae2de6978915991a564e3c5c69b66b629c031af.tar.bz2
linux-cae2de6978915991a564e3c5c69b66b629c031af.zip
iomap: Add async buffered write support
This adds async buffered write support to iomap. This replaces the call to balance_dirty_pages_ratelimited() with the call to balance_dirty_pages_ratelimited_flags. This allows to specify if the write request is async or not. In addition this also moves the above function call to the beginning of the function. If the function call is at the end of the function and the decision is made to throttle writes, then there is no request that io-uring can wait on. By moving it to the beginning of the function, the write request is not issued, but returns -EAGAIN instead. io-uring will punt the request and process it in the io-worker. By moving the function call to the beginning of the function, the write throttling will happen one page later. Signed-off-by: Stefan Roesch <shr@fb.com> Reviewed-by: Jan Kara <jack@suse.cz> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Link: https://lore.kernel.org/r/20220623175157.1715274-6-shr@fb.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/mpage.c')
0 files changed, 0 insertions, 0 deletions