Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 636aff7e authored by Jahdiel Alvarez's avatar Jahdiel Alvarez
Browse files

Avoid holding lock while creating and starting storage session

Avoid holding lock while making a binder call. Currently waiting for the
creation and start of a new storage session to release the lock. This
creates lock contention during user switch.

Test: boots up
Bug: 308452457
Change-Id: I4830c41f579f3e35fbfc40e3559a1324775d6984
parent a8c34f8d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -126,11 +126,11 @@ public final class StorageSessionController {
                connection = new StorageUserConnection(mContext, userId, this);
                mConnections.put(userId, connection);
            }
        }
        Slog.i(TAG, "Creating and starting session with id: " + sessionId);
        connection.startSession(sessionId, deviceFd, vol.getPath().getPath(),
                vol.getInternalPath().getPath());
    }
    }

    /**
     * Notifies the Storage Service that volume state for {@code vol} is changed.