]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: d3n: fix valgrind reported leak related to libaio worker threads 54852/head
authorMark Kogan <mkogan@ibm.com>
Tue, 28 Nov 2023 12:34:31 +0000 (14:34 +0200)
committerMark Kogan <mkogan@ibm.com>
Sun, 10 Dec 2023 11:42:25 +0000 (13:42 +0200)
commitd768372fccbf75d9ce649fe1f4dfcf0f0ee6c460
tree284495027ec22d367496988a72677afe14a0384d
parentca73cc8896faaec50a1a3ff255f8ddc289af9bf8
rgw: d3n: fix valgrind reported leak related to libaio worker threads

which sporadically reproduces on teuthology ubuntu instances

happens because a race between RGW shutdown occurring before
the libaio worker threads had terminated

to fix, reduced the libaio threads inactivity shutdown time

ref:
man aio_init
...
aio_idle_time
This field specifies the amount of time in seconds that a worker thread
should wait for further requests before terminating, after having
completed a previous request.   The
default value is 1.
...

Fixes: https://tracker.ceph.com/issues/63445
Signed-off-by: Mark Kogan <mkogan@ibm.com>
(cherry picked from commit dd258d8da00c400fdca752c47366b6bd453e27ed)
src/rgw/driver/rados/rgw_d3n_datacache.cc