summaryrefslogtreecommitdiff
path: root/include/acpi
diff options
context:
space:
mode:
authorSong Liu <songliubraving@fb.com>2016-11-23 22:50:39 -0800
committerShaohua Li <shli@fb.com>2016-11-27 21:35:38 -0800
commitd7bd398e97f236a2353689eca5e8950f67cd34d5 (patch)
treeed071303317acc6ba7008e808fec5845ab5fe45b /include/acpi
parent034e33f5eda3c61edb838471f69ec42d64e1e94e (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 <songliubraving@fb.com> Reviewed-by: NeilBrown <neilb@suse.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'include/acpi')
0 files changed, 0 insertions, 0 deletions