Coly--- On Fri, Jan 5, 2018 at 9:05 AM, Coly Li <colyli@xxxxxxx> wrote: > It seems I need to call set_current_state(TASK_INTERRUPTIBLE) before > up_write(&dc->writeback_lock), then dc->writeback_lock will protect and > avoid the race. Or move set_current_state(TASK_INTERRUPTIBLE) to the > location before the condition checks in line 469-471. I think you're right. Sorry I missed this in my review. I will pull this from my testing/for-416 set. Mike