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

Commit c8823b16 authored by Christian Brauner's avatar Christian Brauner Committed by Hridya Valsaraju
Browse files

BACKPORT: binderfs: reserve devices for initial mount



The binderfs instance in the initial ipc namespace will always have a
reserve of 4 binder devices unless explicitly capped by specifying a lower
value via the "max" mount option.
This ensures when binder devices are removed (on accident or on purpose)
they can always be recreated without risking that all minor numbers have
already been used up.

Cc: Todd Kjos <tkjos@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChristian Brauner <christian.brauner@ubuntu.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>

Bug: 136497735
(cherry picked from commit 36bdf3cae09df891b191f3955c8e54a2e05d67d0)
[Resolved minor conflicts due to the switch to
ida_get_simple/ida_remove]
Change-Id: I001f305659c37e3b631696712332ae2e21464be8
Signed-off-by: default avatarHridya Valsaraju <hridya@google.com>
parent 4057c1f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment