From: Nick Wilson nfs_readpage_release() causes an oops while accessing a file with NFS debugging turned on (echo 32767 > /proc/sys/sunrpc/nfs_debug) and a kernel built with CONFIG_DEBUG_SLAB. This patch moves the debugging statement above nfs_release_request() to avoid accessing freed memory. Signed-off-by: Nick Wilson Cc: Trond Myklebust Signed-off-by: Andrew Morton --- fs/nfs/read.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff -puN fs/nfs/read.c~nfs-fix-client-oops-when-debugging-is-on fs/nfs/read.c --- 25/fs/nfs/read.c~nfs-fix-client-oops-when-debugging-is-on 2005-06-23 23:07:25.000000000 -0700 +++ 25-akpm/fs/nfs/read.c 2005-06-23 23:07:39.000000000 -0700 @@ -182,14 +182,13 @@ static void nfs_readpage_release(struct { unlock_page(req->wb_page); - nfs_clear_request(req); - nfs_release_request(req); - dprintk("NFS: read done (%s/%Ld %d@%Ld)\n", req->wb_context->dentry->d_inode->i_sb->s_id, (long long)NFS_FILEID(req->wb_context->dentry->d_inode), req->wb_bytes, (long long)req_offset(req)); + nfs_clear_request(req); + nfs_release_request(req); } /* _