dm snapshot: persistent annotate work_queue as on stack
authorMike Snitzer <snitzer@redhat.com>
Tue, 16 Feb 2010 18:42:51 +0000 (18:42 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Tue, 16 Feb 2010 18:42:51 +0000 (18:42 +0000)
commit55f67f2dedec1e3049abc30b6d82b999a14cafb7
tree33c39276f5b185c9ec9fefa296f344675241f98a
parent781248c1b50c776a9ef4be1130f84ced1cba42fe
dm snapshot: persistent annotate work_queue as on stack

chunk_io() declares its 'struct mdata_req' on the stack and then
initializes its 'struct work_struct' member.  Annotate the
initialization of this workqueue with INIT_WORK_ON_STACK to suppress a
debugobjects warning seen when CONFIG_DEBUG_OBJECTS_WORK is enabled.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
drivers/md/dm-snap-persistent.c