Fix bug in xdr_kunmap() (resend)
Subsystems (3)
PATCH 1/1 Fix bug in xdr_kunmap() (resend)
The following patch fixes a bug in xdr_kunmap() that has been known
to deadlock TCP mounts on highmem systems. It also removes an unnecessary call to flush_page_to_ram().
Cheers,
Trond
net/sunrpc/xdr.c +1 -1
@@ -242,11 +242,11 @@return ;if (base || xdr->page_base) { pglen -= base; + base += xdr->page_base; ppage += base >>PAGE_CACHE_SHIFT ; }for (;;) {flush_dcache_page (*ppage); -flush_page_to_ram (*ppage);kunmap (*ppage);if (pglen <=PAGE_CACHE_SIZE )break ;