函数源码

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source File:kernel\rcu\rcutorture.c Create Date:2022-07-27 11:21:27
首页 Copyright©Brick

408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
static void
rcu_torture_cb(struct rcu_head *p)
{
    struct rcu_torture *rp = container_of(p, struct rcu_torture, rtort_rcu);
 
    if (torture_must_stop_irq()) {
        /* Test is ending, just drop callbacks on the floor. */
        /* The next initialization will pick up the pieces. */
        return;
    }
    if (rcu_torture_pipe_update_one(rp))
        rcu_torture_free(rp);
    else
        cur_ops->deferred_free(rp);
}