Closed Bug 1890097 Opened 1 year ago Closed 4 months ago

Perform quota checks for writable file stream in the parent process using dedicated task queues

Categories

(Core :: Storage: Bucket File System, task, P3)

task

Tracking

()

RESOLVED WONTFIX

People

(Reporter: janv, Assigned: janv)

References

(Depends on 1 open bug)

Details

Attachments

(10 obsolete files)

Just like SyncAccessHandle, WritableFileStream should perform quota checks in the parent process using dedicated task queues.
See bug 1809043 and bug 1809064.

Parent objects are usually actors as well, but the writable file stream is
special because it will need to do closing asynchronously and potentially have
multiple actors.

Assignee: nobody → jvarga
Status: NEW → ASSIGNED

Asynchronous closing can't be triggered from the destructor because it needs to
add a strong ref to self.

FileSystemWritableFileStreamResource::Create now returns a MozPromise, but the
creation does nothing on other threads for now.

Active FileSystemWritableFileStreams will prevent FileSystemDataManager from
closing.

The close in the parent is going to be asynchronous as well, so it won't be
guaranteed anymore that the unlocking happens synchronously immediatelly after
receiving the close message.

Depends on: 1905276
No longer depends on: 1905276
Depends on: 1905445
Attachment #9398280 - Attachment is obsolete: true
Attachment #9398166 - Attachment is obsolete: true
Attachment #9398162 - Attachment is obsolete: true
Attachment #9397750 - Attachment is obsolete: true
Attachment #9395759 - Attachment is obsolete: true
Attachment #9395760 - Attachment is obsolete: true
Attachment #9395761 - Attachment is obsolete: true
Attachment #9395762 - Attachment is obsolete: true
Attachment #9395763 - Attachment is obsolete: true
Attachment #9395764 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 4 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: