Re: [PATCH v3 02/13] bcache: properly set task state in bch_writeback_thread()

2018-01-16 Thread Hannes Reinecke
On 01/14/2018 03:42 PM, Coly Li wrote: > Kernel thread routine bch_writeback_thread() has the following code block, > > 447 down_write(>writeback_lock); > 448~450 if (check conditions) { > 451 up_write(>writeback_lock); > 452

[PATCH v3 02/13] bcache: properly set task state in bch_writeback_thread()

2018-01-14 Thread Coly Li
Kernel thread routine bch_writeback_thread() has the following code block, 447 down_write(>writeback_lock); 448~450 if (check conditions) { 451 up_write(>writeback_lock); 452 set_current_state(TASK_INTERRUPTIBLE); 453 454 if