two minor update patches for RAS
Subsystems (4)
PATCH 1/2 APEI, GHES: Cleanup unnecessary function for lock-less list
In reply to Chen, GongWe have provided a reverse function for lock-less list so delete uncessary codes.
--- drivers/acpi/apei/ghes.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-)
drivers/acpi/apei/ghes.c +2 -16
@@ -734,20 +734,6 @@ static int ghes_notify_sci(struct notifier_block *this,return ret; } -static struct llist_node *llist_nodes_reverse (struct llist_node *llnode) -{ -struct llist_node *next, *tail =NULL ; - -while (llnode) { - next = llnode->next; - llnode->next = tail; - tail = llnode; - llnode = next; - } - -return tail; -} -static void ghes_proc_in_irq (struct irq_work *irq_work) {struct llist_node *llnode, *next;
@@ -761,7 +747,7 @@ static void ghes_proc_in_irq(struct irq_work *irq_work)* Because the time order of estatus in list is reversed, * revert it back to proper order. */ - llnode =llist_nodes_reverse (llnode); + llnode =llist_reverse_order (llnode);while (llnode) { next = llnode->next; estatus_node = llist_entry(llnode, struct ghes_estatus_node,
@@ -794,7 +780,7 @@ static void ghes_print_queued_estatus(void)* Because the time order of estatus in list is reversed, * revert it back to proper order. */ - llnode =llist_nodes_reverse (llnode); + llnode =llist_reverse_order (llnode);while (llnode) { estatus_node = llist_entry(llnode, struct ghes_estatus_node, llnode);
Signature · 7 lines
2.0.0.rc2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
PATCH 2/2 RAS, HWPOISON: Fix wrong error recovery status
In reply to Chen, GongWhen Uncorrected error happens, if the poisoned page is referenced by more than one user after error recovery, the recovery is not successful. But currently the display result is wrong. Before this patch:
MCE 0x44e336: dirty mlocked LRU page recovery: Recovered MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered
After this patch:
MCE 0x44e336: dirty mlocked LRU page recovery: Failed MCE 0x44e336: dirty mlocked LRU page still referenced by 1 users
mce: Memory error not recovered
--- mm/memory-failure.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory-failure.c +1 -1
@@ -860,7 +860,6 @@ static int page_action(struct page_state *ps, struct page *p,int count; result = ps->action (p, pfn); -action_result (pfn, ps->msg, result); count =page_count (p) -1 ;if (ps->action == me_swapcache_dirty && result ==DELAYED )
@@ -871,6 +870,7 @@ static int page_action(struct page_state *ps, struct page *p, pfn, ps->msg, count); result =FAILED ; } +action_result (pfn, ps->msg, result);/* Could do more checks here if page looks ok */ /*
Signature · 1 line
2.0.0.rc2
[PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status
These two patches are trivial fixes for APEI and HWPOISON. Send them together to avoid fragments.
Re: [PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less list
In reply to Chen, GongQuoted 5 lines · Gong
We have provided a reverse function for lock-less list so delete uncessary codes.
Signed-off-by Chen, Gong <[email protected]>Acked-by Borislav Petkov <[email protected]>
Quoted 56 lines
--- drivers/acpi/apei/ghes.c | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-)drivers/acpi/apei/ghes.c +2
-16@@ -734,20 +734,6 @@ static int ghes_notify_sci(struct notifier_block *this,return ret; } -static struct llist_node *llist_nodes_reverse (struct llist_node *llnode) -{ -struct llist_node *next, *tail =NULL ; - -while (llnode) { - next = llnode->next; - llnode->next = tail; - tail = llnode; - llnode = next; - } - -return tail; -} -static void ghes_proc_in_irq (struct irq_work *irq_work) {struct llist_node *llnode, *next;@@ -761,7 +747,7 @@ static void ghes_proc_in_irq(struct irq_work *irq_work)* Because the time order of estatus in list is reversed, * revert it back to proper order. */ - llnode =llist_nodes_reverse (llnode); + llnode =llist_reverse_order (llnode);while (llnode) { next = llnode->next; estatus_node = llist_entry(llnode, struct ghes_estatus_node,@@ -794,7 +780,7 @@ static void ghes_print_queued_estatus(void)* Because the time order of estatus in list is reversed, * revert it back to proper order. */ - llnode =llist_nodes_reverse (llnode); + llnode =llist_reverse_order (llnode);while (llnode) { estatus_node = llist_entry(llnode, struct ghes_estatus_node, llnode);Signature · 7 lines
2.0.0.rc2 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
Tony Luck
Acked-byQuoted 2 lines · Gong
[PATCH 1/2] APEI, GHES: Cleanup unnecessary function for lock-less [PATCH 2/2] RAS, HWPOISON: Fix wrong error recovery status
both parts: