diff options
author | Song Liu <[email protected]> | 2016-11-23 22:50:39 -0800 |
---|---|---|
committer | Shaohua Li <[email protected]> | 2016-11-27 21:35:38 -0800 |
commit | d7bd398e97f236a2353689eca5e8950f67cd34d5 (patch) | |
tree | ed071303317acc6ba7008e808fec5845ab5fe45b /net/lapb | |
parent | 034e33f5eda3c61edb838471f69ec42d64e1e94e (diff) |
md/r5cache: handle alloc_page failure
RMW of r5c write back cache uses an extra page to store old data for
prexor. handle_stripe_dirtying() allocates this page by calling
alloc_page(). However, alloc_page() may fail.
To handle alloc_page() failures, this patch adds an extra page to
disk_info. When alloc_page fails, handle_stripe() trys to use these
pages. When these pages are used by other stripe (R5C_EXTRA_PAGE_IN_USE),
the stripe is added to delayed_list.
Signed-off-by: Song Liu <[email protected]>
Reviewed-by: NeilBrown <[email protected]>
Signed-off-by: Shaohua Li <[email protected]>
Diffstat (limited to 'net/lapb')
0 files changed, 0 insertions, 0 deletions