Thread (14 messages) 14 messages, 5 authors, 2015-12-24

Re: [PATCH net-next V2 3/4] net/mlx5e: Add HW timestamping (TS) support

From: Saeed Mahameed <hidden>
Date: 2015-12-22 09:56:57

On Mon, Dec 21, 2015 at 8:35 PM, Richard Cochran
[off-list ref] wrote:
On Mon, Dec 21, 2015 at 04:35:23PM +0200, Saeed Mahameed wrote:
quoted
think of a case where:
CPU1: is just about to call
"schedule_delayed_work(&tstamp->overflow_work,
tstamp->overflow_period);"
CPU2: cancel_delayed_work

In this case cancel_dalyed_work_sync (CPU2) will wait for CPU1 to
complete but CPU1 will re-arm the work, and we will
be left with tstamp->overflow_work running forever.
This is my understanding:  Once the work becomes re-queued, it will be
canceled before running again.
True, will fix this.
Thanks
Thanks,
Richard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help