summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2014-04-29 17:22:04 +0200
committerMike Snitzer <snitzer@redhat.com>2014-04-29 17:22:04 +0200
commitfbcde3d8b9c2d97704b8ca299e5266147b24c8ee (patch)
tree5c55d600f748e404c131ec13158628d0336d24cf /drivers/md/dm-thin.c
parentdm verity: fix biovecs hash calculation regression (diff)
downloadlinux-fbcde3d8b9c2d97704b8ca299e5266147b24c8ee.tar.xz
linux-fbcde3d8b9c2d97704b8ca299e5266147b24c8ee.zip
dm thin: use INIT_WORK_ONSTACK in noflush_work to avoid ODEBUG warning
Use INIT_WORK_ONSTACK to silence "ODEBUG: object is on stack, but not annotated". Reported-by: Zdeněk Kabeláč <zkabelac@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Acked-by: Joe Thornber <ejt@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c
index 28fc282b61b2..13abade76ad9 100644
--- a/drivers/md/dm-thin.c
+++ b/drivers/md/dm-thin.c
@@ -1625,7 +1625,7 @@ static void noflush_work(struct thin_c *tc, void (*fn)(struct work_struct *))
{
struct noflush_work w;
- INIT_WORK(&w.worker, fn);
+ INIT_WORK_ONSTACK(&w.worker, fn);
w.tc = tc;
atomic_set(&w.complete, 0);
init_waitqueue_head(&w.wait);