]> Pileus Git - ~andy/linux/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)
commit563af186df08002d2600c4e718ad8f3bde109f53
treee8ba7cf56e84a1aacb77d41499387c89bf58cce6
parente8088073c9610af017fd47fddd104a2c3afb32e8
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