| To: | hch@xxxxxx |
|---|---|
| Subject: | Re: [PATCH] shaper.c: fix locking |
| From: | "David S. Miller" <davem@xxxxxxxxxxxxx> |
| Date: | Tue, 31 May 2005 14:41:14 -0700 (PDT) |
| Cc: | netdev@xxxxxxxxxxx |
| In-reply-to: | <20050527115450.GA19469@xxxxxx> |
| References: | <20050527115450.GA19469@xxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
From: Christoph Hellwig <hch@xxxxxx> Subject: [PATCH] shaper.c: fix locking Date: Fri, 27 May 2005 13:54:50 +0200 > o use a semaphore instead of an opencoded and racy lock > o move locking out of shaper_kick and into the callers - most just > released the lock before calling shaper_kick > o remove in_interrupt() tests. from ->close we can always block, from > ->hard_start_xmit and timer context never Do you really want to use a semaphore for a lock taken %99 of the time in software IRQ context, which obviously cannot sleep? |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: TG3 fix for slow switches (Was: TG3 driver failure on HP 16-way), Michael Chan |
|---|---|
| Next by Date: | Re: PATCH: rtnetlink explicit flags setting, David S. Miller |
| Previous by Thread: | [PATCH] shaper.c: fix locking, Christoph Hellwig |
| Next by Thread: | Re: [PATCH] shaper.c: fix locking, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |