From: Stanislav Kinsbursky Date: Mon, 4 Feb 2013 11:03:03 +0000 (+0300) Subject: SUNRPC: move cache_detail->cache_request callback call to cache_read() X-Git-Tag: v3.9-rc1~40^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d94af6dea9cd680fb795dbc409a7360f1c63dc34;p=pandora-kernel.git SUNRPC: move cache_detail->cache_request callback call to cache_read() The reason to move cache_request() callback call from sunrpc_cache_pipe_upcall() to cache_read() is that this garantees, that cache access will be done userspace process context (only userspace process have proper root context). This is required for NFSd support in container: svc_export_request() (which is cache_request callback) calls d_path(), which, in turn, traverse dentry up to current->fs->root. Kernel threads always have global root, while container have be in "root jail" - i.e. have it's own nested root. Signed-off-by: Stanislav Kinsbursky Signed-off-by: J. Bruce Fields --- Reading git-diff-tree failed