On Sun, Feb 1, 2015 at 3:03 PM, NeilBrown <neilb@suse.de> wrote: > > I guess I could > __set_current_state(TASK_RUNNING); > somewhere to defeat the warning, and add a comment explaining why. > > Would that be a good thing?
Use "sched_annotate_sleep()" instead, but yes, add a comment about why it's ok.