]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mds: avoid spurious sleeps 39130/head
authorPatrick Donnelly <pdonnell@redhat.com>
Tue, 5 Jan 2021 17:03:27 +0000 (09:03 -0800)
committerNathan Cutler <ncutler@suse.com>
Thu, 28 Jan 2021 11:26:39 +0000 (12:26 +0100)
commit42e87e29763549a4bba47ca823247e682dd5d1f9
treecf7add48394c116644ff53f1589ad152e2612a70
parent9743ed991c7282b299a36c28d635ff251bdee338
mds: avoid spurious sleeps

Like trim_interval, don't sleep for small amounts of time. This avoids
spurious sleeps like:

    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s
    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s
    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s
    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s
    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s
    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s
    2020-12-25T00:14:22.242+0000 7f6a95884700 20 mds.0.cache upkeep thread waiting interval 0.000000108s

Also, fix the same issue in the Client.

Fixes: https://tracker.ceph.com/issues/48753
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit eb47e990c33843b9baa366e2b2a187439210e680)

Conflicts:
src/client/Client.cc
- in the nautilus version of this file, the code being modified does not exist
src/mds/MDCache.cc