On Thu, 2005-08-25 at 12:41 +0200, Eric Dumazet wrote: > OK, here is a new clean patch that address this problem (nothing assumed about > atomics) > Would you just be able to add the atomic sysctl handler that Christoph suggested? This introduces lost update problems. 2 CPUs may store to nr_files in the opposite order that they incremented atomic_nr_files. It is not terribly bad, because the drift is not cumulative and the field can't go negative... but its just ugly to add this hack because there is no atomic sysctl handler. Eliminating the cli/sti is a good idea though, I think. -- SUSE Labs, Novell Inc. Send instant messages to your online friends http://au.messenger.yahoo.com - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- From: Eric Dumazet <dada1@cosmosbay.com>
- Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- References:
- [patch] Additions to .data.read_mostly section
- From: Ravikiran G Thirumalai <kiran@scalex86.org>
- Re: [patch] Additions to .data.read_mostly section
- From: Arjan van de Ven <arjan@infradead.org>
- [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- From: Eric Dumazet <dada1@cosmosbay.com>
- Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- From: Christoph Hellwig <hch@infradead.org>
- Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- From: Eric Dumazet <dada1@cosmosbay.com>
- Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- From: Christoph Hellwig <hch@infradead.org>
- Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- From: Eric Dumazet <dada1@cosmosbay.com>
- [patch] Additions to .data.read_mostly section
- Prev by Date: [patch] ipw2200: remove trap and unused stuff
- Next by Date: Re: CFQ + 2.6.13-rc4-RT-V0.7.52-02 = BUG: scheduling with irqs disabled
- Previous by thread: Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- Next by thread: Re: [PATCH] removes filp_count_lock and changes nr_files type to atomic_t
- Index(es):
