Whamcloud - gitweb
LU-9859 libcfs: don't call unshare_fs_struct() 32/39132/3
authorMr NeilBrown <neilb@suse.de>
Sun, 7 Jun 2020 23:24:25 +0000 (19:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 4 Jul 2020 03:05:47 +0000 (03:05 +0000)
commit9013eb2bb5492b1e8321d0ed534bee566f19627b
treefacd01a56dc0143af2417640ff1b7912eef80224
parentdb3e51f612069b31712083eee09be4f466a1033e
LU-9859 libcfs: don't call unshare_fs_struct()

A kthread runs with the same fs_struct as init.
It is only helpful to unshare this if the thread
will change one of the fields in the fs_struct:
 root directory
 current working directory
 umask.

No lustre kthread changes any of these, so there is
no need to call unshare_fs_struct().

Signed-off-by: Mr NeilBrown <neilb@suse.de>
Change-Id: I7309b6ed184b14a272bad7dc5149ad36281f948e
Reviewed-on: https://review.whamcloud.com/39132
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Yang Sheng <ys@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
14 files changed:
libcfs/include/libcfs/libcfs.h
libcfs/libcfs/linux/linux-curproc.c
libcfs/libcfs/linux/linux-prim.c
lustre/include/lustre_compat.h
lustre/ldlm/ldlm_lib.c
lustre/ldlm/ldlm_request.c
lustre/llite/llite_lib.c
lustre/obdclass/llog.c
lustre/osd-ldiskfs/osd_handler.c
lustre/ptlrpc/import.c
lustre/ptlrpc/pinger.c
lustre/ptlrpc/ptlrpcd.c
lustre/ptlrpc/sec_ctx.c
lustre/ptlrpc/service.c