[PATCH RFC] usercopy: optimize stack check flow when the page-spanning test is disabled

2018-08-14 Thread Xiaofeng Yuan
ded total check time and numbers of kernel stacks. The average time of checking kernel stacks reduced by 48%. Signed-off-by: Xiaofeng Yuan --- mm/usercopy.c | 24 1 file changed, 24 insertions(+) diff --git a/mm/usercopy.c b/mm/usercopy.c index e9e9325..af350f6 100644 --- a

[PATCH RFC] usercopy: optimize stack check flow when the

2018-08-14 Thread Xiaofeng Yuan
ded total check time and numbers of kernel stacks. The average time of checking kernel stacks reduced by 48%. Signed-off-by: Xiaofeng Yuan --- mm/usercopy.c | 24 1 file changed, 24 insertions(+) diff --git a/mm/usercopy.c b/mm/usercopy.c index e9e9325..af350f6 100644 --- a