aboutsummaryrefslogtreecommitdiffstats
path: root/REPORTING-BUGS
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2015-10-05 09:31:06 +0200
committerNeilBrown <neilb@suse.com>2015-11-01 13:48:27 +1100
commit170364619ac21c2b14869571eeaf767ae825f96c (patch)
treedb7a32b63816e0523aef421588aedd8b99402180 /REPORTING-BUGS
parentraid5-cache: move reclaim stop to quiesce (diff)
downloadlinux-dev-170364619ac21c2b14869571eeaf767ae825f96c.tar.xz
linux-dev-170364619ac21c2b14869571eeaf767ae825f96c.zip
raid5-cache: free I/O units earlier
There is no good reason to keep the I/O unit structures around after the stripe has been written back to the RAID array. The only information we need is the log sequence number, and the checkpoint offset of the highest successfull writeback. Store those in the log structure, and free the IO units from __r5l_stripe_write_finished. Besides simplifying the code this also avoid having to keep the allocation for the I/O unit around for a potentially long time as superblock updates that checkpoint the log do not happen very often. This also fixes the previously incorrect calculation of 'free' in r5l_do_reclaim as a side effect: previous if took the last unit which isn't checkpointed into account. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Shaohua Li <shli@fb.com> Signed-off-by: NeilBrown <neilb@suse.com>
Diffstat (limited to 'REPORTING-BUGS')
0 files changed, 0 insertions, 0 deletions