Fixes and refactors that I noticed were needed while preparing support for "patient module removal[1][2]" in modprobe. The added functionality will be sent on top of these. [1] https://lore.kernel.org/linux-modules/20210803202417.462197-1-mcgrof@xxxxxxxxxx/ [2] https://lore.kernel.org/linux-modules/20210810051602.3067384-1-mcgrof@xxxxxxxxxx/ Lucas De Marchi (4): modprobe: Rename rmmod_do_deps_list modprobe: Fix holders removal modprobe: Move check for remove_holders to caller modprobe: Make rmmod_do_module() contain all the removal sequence tools/modprobe.c | 64 ++++++++++++++++++++++++++++-------------------- 1 file changed, 38 insertions(+), 26 deletions(-) -- 2.35.1