lkml.org 
[lkml]   [2014]   [Apr]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH tip/core/rcu 33/45] rcutorture: Check for rcu_torture_fqs creation errors
    Date
    From: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>

    The return value from torture_create_kthread() is currently ignored
    when creating the rcu_torture_fqs kthread. This commit therefore
    captures the return value so that it can be tested for errors.

    Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
    ---
    kernel/rcu/rcutorture.c | 3 ++-
    1 file changed, 2 insertions(+), 1 deletion(-)

    diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c
    index ea8af005ea3f..cf231f508139 100644
    --- a/kernel/rcu/rcutorture.c
    +++ b/kernel/rcu/rcutorture.c
    @@ -1576,7 +1576,8 @@ rcu_torture_init(void)
    fqs_duration = 0;
    if (fqs_duration) {
    /* Create the fqs thread */
    - torture_create_kthread(rcu_torture_fqs, NULL, fqs_task);
    + firsterr = torture_create_kthread(rcu_torture_fqs, NULL,
    + fqs_task);
    if (firsterr)
    goto unwind;
    }
    --
    1.8.1.5


    \
     
     \ /
      Last update: 2014-04-29 04:21    [W:4.071 / U:0.112 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site