stat: used shared sem for stats lock master
authorJens Axboe <axboe@kernel.dk>
Tue, 16 Sep 2025 16:08:57 +0000 (10:08 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 16 Sep 2025 16:08:57 +0000 (10:08 -0600)
commit2c573a35f3d6b67723114af9e6dffad1e94474bc
treed38752bcc94376b0913d811ba62f9a4cd8156d92
parent84787adffac2435e72f6f08336e32559fd31e3a0
stat: used shared sem for stats lock

Like commit:

21628ec537c7 ("fio_sem, diskutil: introduce fio_shared_sem and use it for diskutil lock")

the stats sem is also potentially shared between processes, and hence
should be allocated and freed as a shared sem.

See the referenced commit, which has more details. Switch the stats sem
to be allocated in such a way that it's propagated properly between
processes.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c