]> git.baikalelectronics.ru Git - kernel.git/commit
dm thin: wake worker when discard is prepared
authorJoe Thornber <ejt@redhat.com>
Fri, 21 Dec 2012 20:23:31 +0000 (20:23 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Fri, 21 Dec 2012 20:23:31 +0000 (20:23 +0000)
commitfc038ff8cfb1b3395ead455a8a5d1f7c038d1d78
treee8ba7cf56e84a1aacb77d41499387c89bf58cce6
parent4cab37692ca06653c86b0696b462bdb5bc3c598f
dm thin: wake worker when discard is prepared

When discards are prepared it is best to directly wake the worker that
will process them.  The worker will be woken anyway, via periodic
commit, but there is no reason to not wake_worker here.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-thin.c