netdev
[Top] [All Lists]

Re: tx_timeout and timer serialisation

To: Andrey Savochkin <saw@xxxxxxxxxxxxx>
Subject: Re: tx_timeout and timer serialisation
From: Andrew Morton <andrewm@xxxxxxxxxx>
Date: Sat, 20 May 2000 21:27:18 +1000
Cc: netdev@xxxxxxxxxxx
References: <3925BB00.B1CDDFE7@xxxxxxxxxxxxxxxx> <Pine.LNX.4.10.10005192039250.825-100000@xxxxxxxxxxxxx>, <Pine.LNX.4.10.10005192039250.825-100000@xxxxxxxxxxxxx>; <20000520122715.A7682@xxxxxxxxxxxxx> <39262113.19447850@xxxxxxxxxx>, <39262113.19447850@xxxxxxxxxx>; from "Andrew Morton" on Sat, May 20, 2000 at 03:22:27PM <20000520133557.A8149@xxxxxxxxxxxxx>
Sender: owner-netdev@xxxxxxxxxxx
Andrey Savochkin wrote:
> 
> We need to serialize the timer handler with outside code (which runs not in
> BH or IRQ context).  For 2.2 del_timer call should be in bh_atomic section.

hmm.. I'm not too familiar with that part of 2.2.  Could you please cook
up a patch to show me what you mean, then I'll torture it a bit.

Does the BH synchronisation work within a BH or an IRQ?  What happens if
we call del_timer within a BH or IRQ when the handler is currently
running? 


-- 
-akpm-

<Prev in Thread] Current Thread [Next in Thread>