Searched hist:d7bd398e97f236a2353689eca5e8950f67cd34d5 (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/md/ |
H A D | raid5-cache.c | diff d7bd398e97f236a2353689eca5e8950f67cd34d5 Thu Nov 24 07:50:39 CET 2016 Song Liu <songliubraving@fb.com> 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>
|
H A D | raid5.h | diff d7bd398e97f236a2353689eca5e8950f67cd34d5 Thu Nov 24 07:50:39 CET 2016 Song Liu <songliubraving@fb.com> 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>
|
H A D | raid5.c | diff d7bd398e97f236a2353689eca5e8950f67cd34d5 Thu Nov 24 07:50:39 CET 2016 Song Liu <songliubraving@fb.com> 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>
|