diff options
author | Mohit Agrawal <moagrawa@redhat.com> | 2017-11-28 11:26:10 +0530 |
---|---|---|
committer | Krutika Dhananjay <kdhananj@redhat.com> | 2017-12-01 10:17:44 +0000 |
commit | 185917c7a621ce0971e883b35221895ef235ca18 (patch) | |
tree | 2b6f8fd79dff79969e096e606c7027cb83942dd8 /xlators/mgmt/glusterd/src/glusterd-volume-set.c | |
parent | 48e3ae7482a7c70dc130dc7f8198636a87649d54 (diff) |
posix: Convert posix_fs_health_check asynchrnously to save timestamp
Problem: Sometime posix_fs_health_check thread is blocked on write/read
call while backend device deleted abruptly.
Solution: To resolve it convert code to update timestamp asynchrnously.
BUG: 1501132
Change-Id: Id68ea6a572bf68fbf437e1d9be5221b63d47ff9c
Signed-off-by: Mohit Agrawal <moagrawa@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-volume-set.c')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-volume-set.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-volume-set.c b/xlators/mgmt/glusterd/src/glusterd-volume-set.c index 32c36c6d886..8ec8a3125ee 100644 --- a/xlators/mgmt/glusterd/src/glusterd-volume-set.c +++ b/xlators/mgmt/glusterd/src/glusterd-volume-set.c @@ -2818,6 +2818,11 @@ struct volopt_map_entry glusterd_volopt_map[] = { .voltype = "storage/posix", .op_version = GD_OP_VERSION_3_13_0, }, + { .option = "health-check-timeout", + .key = "storage.health-check-timeout", + .voltype = "storage/posix", + .op_version = GD_OP_VERSION_4_0_0, + }, { .key = "storage.bd-aio", .voltype = "storage/bd", .op_version = 3 |