Open Bug 1904941 Opened 7 days ago Updated 6 days ago

Use DirectoryLockImpl::Prepare in quota manager initialization methods

Categories

(Core :: Storage: Quota Manager, task, P2)

task

Tracking

()

ASSIGNED

People

(Reporter: janv, Assigned: janv)

References

(Depends on 1 open bug, Blocks 1 open bug)

Details

Attachments

(2 files)

Some quota manager initialization methods need to check blocked-on locks of a newly created directory lock before DirectoryLockImpl::Acquire is called. This leads to multiple traversals of all existing directory locks and also to allocation of a new array for directory locks. This can be avoided by calling DirectoryLockImpl::Prepare method first, using the result for checks and then passing the result to DirectoryLockImpl::Acquire overload.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: