* dm-snap-persistent: chunk_io doesn't call destroy_work_on_stack in 3.10.76
@ 2015-05-08 7:38 Akira Hayakawa
2015-05-10 2:22 ` Minfei Huang
0 siblings, 1 reply; 2+ messages in thread
From: Akira Hayakawa @ 2015-05-08 7:38 UTC (permalink / raw)
To: device-mapper development
Hi,
I am looking at 3.10.76 kernel and found that
chunk_io function of dm-snap-persistent doesn't call
destroy_work_on_stack to pair with INIT_WORK_ON_STACK.
INIT_WORK_ONSTACK(&req.work, do_metadata);
queue_work(ps->metadata_wq, &req.work);
flush_workqueue(ps->metadata_wq);
// I think you need it here
return req.result;
Is it not buggy?
- Akira
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: dm-snap-persistent: chunk_io doesn't call destroy_work_on_stack in 3.10.76
2015-05-08 7:38 dm-snap-persistent: chunk_io doesn't call destroy_work_on_stack in 3.10.76 Akira Hayakawa
@ 2015-05-10 2:22 ` Minfei Huang
0 siblings, 0 replies; 2+ messages in thread
From: Minfei Huang @ 2015-05-10 2:22 UTC (permalink / raw)
To: device-mapper development
On 05/08/15 at 04:38P, Akira Hayakawa wrote:
> Hi,
>
> I am looking at 3.10.76 kernel and found that
> chunk_io function of dm-snap-persistent doesn't call
> destroy_work_on_stack to pair with INIT_WORK_ON_STACK.
>
> INIT_WORK_ONSTACK(&req.work, do_metadata);
> queue_work(ps->metadata_wq, &req.work);
> flush_workqueue(ps->metadata_wq);
> // I think you need it here
>
> return req.result;
>
> Is it not buggy?
commit c1a6416021b311fdb5b98e40ed8b29508845ed16
Author: Chuansheng Liu <chuansheng.liu@intel.com>
Date: Tue Jan 7 16:56:18 2014 +0800
dm snapshot: call destroy_work_on_stack() to pair with INIT_WORK_ONSTACK()
In case CONFIG_DEBUG_OBJECTS_WORK is defined, it is needed to
call destroy_work_on_stack() which frees the debug object to pair
with INIT_WORK_ONSTACK().
Signed-off-by: Liu, Chuansheng <chuansheng.liu@intel.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Thanks
Minfei
>
> - Akira
>
> --
> dm-devel mailing list
> dm-devel@redhat.com
> https://www.redhat.com/mailman/listinfo/dm-devel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-05-10 2:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-08 7:38 dm-snap-persistent: chunk_io doesn't call destroy_work_on_stack in 3.10.76 Akira Hayakawa
2015-05-10 2:22 ` Minfei Huang
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.