diff options
author | Susant Palai <spalai@redhat.com> | 2019-02-20 15:52:55 +0530 |
---|---|---|
committer | Ravishankar N <ravishankar@redhat.com> | 2019-03-05 13:55:21 +0000 |
commit | f5c3b1727f55ffaa3dcdb3c3a09b968ebb45dbb2 (patch) | |
tree | 55093e43cf1ee16e6782eb4dff9bc9c0760d07f1 /xlators/mgmt/glusterd/src/glusterd-syncop.c | |
parent | 82bedd01fd36d0b631367fab3e2cc4ca0b259378 (diff) |
io-threads: Prioritize fops with NO_ROOT_SQUASH pid
There was 30% regression observed in mkdir path with commit
b139bc58eb504adf5ef81658896c9283ae21f390. On analysis it is found
that io-threads xlator deprioritzes fops with all -ve pid.
Some context in to the no-root-squash pid requirement:
DHT xlator does some of the internal fops with root privileges. This is
needed so that operations like layout healing should not be abandoned
because a non root user is operating. If root-squash option is enabled
the layout set operation looses its root privilege as server xlator
converts the uid and pid to random numbers. Hence, the above mentioned
commit converted pid to GF_CLIENT_PID_NO_ROOT_SQUASH to continue fops
as root.
Combining the above I am proposing not to deprioritize fops with
no-root-squash pid.
Change-Id: I54d056c01b25729304a77f9242fbaff39c5672ba
fixes: bz#1676430
Signed-off-by: Susant Palai <spalai@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-syncop.c')
0 files changed, 0 insertions, 0 deletions