]> git.baikalelectronics.ru Git - kernel.git/commit
flusher: Fix PF_FROZEN race
authorOGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Thu, 3 Dec 2009 12:49:43 +0000 (13:49 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 3 Dec 2009 12:49:43 +0000 (13:49 +0100)
commita6bf92d0f30e3a6959559813d8ee514955c569eb
tree8f42b40fed799332e94142a084fed158f56a4d1a
parent1a8a86055a2a85869b5671909223921304ad3ef5
flusher: Fix PF_FROZEN race

To touch task->flags directly is racy. thaw_process() still has race
(changing non_current->flags, but this is another issue) though, I think
it's much better off.

So, use thaw_process() instead.

Signed-off-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
mm/backing-dev.c