lkml.org 
[lkml]   [2007]   [Mar]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH -mm 3/7] Freezer: Remove PF_NOFREEZE from rcutorture thread

    Hi Paul,

    > We certainly either need to embed try_to_freeze() into kthread_should_stop()
    > or add back the rcu_torture_fakewriter(), and rcu_torture_reader()
    > components of this patch. ;-)
    >
    > One way to embed try_to_freeze() into kthread_should_stop() might be
    > as follows:
    >
    > int kthread_should_stop(void)
    > {
    > if (kthread_stop_info.k == current)
    > return 1;
    > try_to_freeze();
    > return 0;
    > }
    >
    > Does this seem reasonable? It certainly would cut down some of the
    > code required for freezing -- and reduce the potential for bugs.

    Thats what I was thinking too :)

    Anton
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-03-02 23:21    [W:2.154 / U:0.132 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site