Closed Bug 1883353 Opened 4 months ago Closed 18 days ago

Require to always drop directory locks explicitly

Categories

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

task

Tracking

()

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: janv, Assigned: janv)

References

(Blocks 1 open bug)

Details

Attachments

(3 files, 1 obsolete file)

This is needed for bug 1903186.

Assignee: nobody → jvarga
No longer blocks: OPFS, 1866240
Severity: -- → S3
Status: NEW → ASSIGNED
Priority: -- → P2
See Also: 1808294

Until now, directory locks were dropped when the last strong reference was
removed or after calling Drop explicitly. The dependency on ref-counting makes
it less obvious when directory locks are dropped for real and it's also
difficult to release them asynchronously eventually. This patch removes the
directory lock unregistration from the destructor, so from now on, directory
locks must be always dropped explicitly.

Keywords: leave-open
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/dca9f407ea90
Require to always drop directory locks explicitly; r=dom-storage-reviewers,jari
Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a98a57009510
Add testing for DirectoryLock::Drop; r=dom-storage-reviewers,jari

For now, asynchronous Drop is only needed for replacing counting of pending
clear/shutdown storage operations with evaluation of existing directory locks.
In future, asynchronous Drop will also allow to do IO, for example if we decide
to wait for saving of origin access time to be finished.

Pushed by jvarga@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/3c8afb03c48d
Convert a debug only assertion in DirectoryLockImpl dtor to a diagnostic assertion; r=dom-storage-reviewers,jstutte
Blocks: 1903186

Comment on attachment 9407629 [details]
Bug 1883353 - Change DirectoryLock::Drop to be asynchronous; r=#dom-storage

Revision D197298 was moved to bug 1903186. Setting attachment 9407629 [details] to obsolete.

Attachment #9407629 - Attachment is obsolete: true
Summary: Improve testing of usage tracking and origin initialization including all the necessary refactorings and new testing infrastructrue: Episode II → Require to always drop directory locks explicitly
No longer blocks: 1671932, 1866217
No longer depends on: 1808294
Keywords: leave-open

Fixed.

Status: ASSIGNED → RESOLVED
Closed: 18 days ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
Regressions: 1903387
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: