Messages in this thread | | | Date | Fri, 21 Feb 2003 10:37:14 +0100 | From | Andrea Arcangeli <> | Subject | Re: xdr nfs highmem deadlock fix [Re: filesystem access slowing system to a crawl] |
| |
On Thu, Feb 20, 2003 at 11:56:14PM +0100, Trond Myklebust wrote: > >>>>> " " == Andrea Arcangeli <andrea@suse.de> writes: > > > 2.5.62 has the very same deadlock condition in xdr triggered by > > nfs too. > > Andrew, if you're forward porting it yourself like with the > > filebacked vma merging feature just let me know so we make sure > > not to duplicate effort. > > For 2.5.x we should rather fix MSG_MORE so that it actually works > instead of messing with hacks to kmap(). > > For 2.4.x, Hirokazu Takahashi had a patch which allowed for a safe > kmap of > 1 page in one call. Appended here as an attachment FYI > (Marcelo do *not* apply!).
you can't do it this way, the number of kmap available can be just 1, and you can ask for 10000 in a row this way. Furthmore you want to be able to use all the kmaps available, think if you have 11 kmaps, and 10 are constantly in use. I much prefer my approch that is the most finegrined and scalable and it doesn't risk to deadlock in function of the number of kmaps in the pool and the max reservation you make. I just considered the approch implemented in the patch you quoted and I discarded it for the reasons explained above.
Andrea - 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/
| |