lkml.org 
[lkml]   [2019]   [Aug]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    SubjectRe: [PATCH 6/9] sparc/perf: correctly check for kthreads
    From
    From: Mark Rutland <mark.rutland@arm.com>
    Date: Wed, 14 Aug 2019 11:41:28 +0100

    > The sparc perf_callchain_user() functions looks at current->mm,
    > apparently to determine whether the thread is a kthread without any
    > valid user context.
    >
    > In general, a non-NULL current->mm doesn't imply that current is a
    > kthread, as kthreads can install an mm via use_mm(), and so it's
    > preferable to use is_kthread() to determine whether a thread is a
    > kthread.
    >
    > For consistency, let's use is_kthread() here.
    >
    > Signed-off-by: Mark Rutland <mark.rutland@arm.com>

    Acked-by: David S. Miller <davem@davemloft.net>

    \
     
     \ /
      Last update: 2019-08-14 18:26    [W:6.556 / U:0.000 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site