Re: [PATCH] mm,hwpoison: return -EBUSY when page already poisoned

From
Aili Yao <hidden>
Date
2021-02-26 02:53:46
Also in
lkml
Reply to
Oscar Salvador, 2021-02-25
Hi naoya,Oscar,david:
quoted
We could use some negative value (error code) to report the reported case,
then as you mentioned above, some callers need change to handle the
new case, and the same is true if you use some positive value.
My preference is -EHWPOISON, but other options are fine if justified well.  
-EHWPOISON seems like a good fit.
I am OK with the -EHWPOISON error code, But I have one doubt here:
When we return this -EHWPOISON error code, Does this means we have to add a new error code
to error-base.h or errno.h? Is this easy realized?

Thanks!
Aili Yao

Thread (46 messages) 46 messages, 6 authors, last reply 2021-03-31
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help