summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorXiaoguang Wang <xiaoguang.wang@linux.alibaba.com>2019-02-10 23:53:21 -0500
committerTheodore Ts'o <tytso@mit.edu>2019-02-10 23:53:21 -0500
commita297b2fcee461e40df763e179cbbfba5a9e572d2 (patch)
treeb15dfad165f70a7b360b2d94676e2842f9d9cf0b /lib
parent16e08b14a4550bb167c48e918b26ef0d4980e9d1 (diff)
ext4: unlock unused_pages timely when doing writeback
In mpage_add_bh_to_extent(), when accumulated extents length is greater than MAX_WRITEPAGES_EXTENT_LEN or buffer head's b_stat is not equal, we will not continue to search unmapped area for this page, but note this page is locked, and will only be unlocked in mpage_release_unused_pages() after ext4_io_submit, if io also is throttled by blk-throttle or similar io qos, we will hold this page locked for a while, it's unnecessary. I think the best fix is to refactor mpage_add_bh_to_extent() to let it return some hints whether to unlock this page, but given that we will improve dioread_nolock later, we can let it done later, so currently the simple fix would just call mpage_release_unused_pages() before ext4_io_submit(). Signed-off-by: Xiaoguang Wang <xiaoguang.wang@linux.alibaba.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions