Locking in encryption threads should be improved

Description

When accessing crypt_data there is an assumption that crypt_data can never change to null when encryption threads are running. That saves lots of locking. However, encryption threads tend to lock fil_system lock a lot, which is quite a performance hit. The locking of encryption threads should be rethought and redesigned - so to at least do not lock fil_system mutex and go with fine-grained shard mutex of space mutex if possible.

Environment

None

Smart Checklist

Activity

Show:

Oleksandr Kachan August 7, 2024 at 11:09 AM

Encryption threads related code was removed. Closing this ticket as well.

Won't Do

Details

Assignee

Reporter

Time tracking

20m logged

Priority

Smart Checklist

Created August 14, 2019 at 9:23 AM
Updated December 2, 2024 at 12:19 PM
Resolved August 7, 2024 at 11:09 AM