Linus hasn’t written kernel code in years at this point, however he still is the final gate keeper of what gets merged and an active code reviewer, he manages the entire direction of the project.
As of what will happen when Linus passes, that’s already been decided. The position of projects leader will go to his most trusted project co-maintainer, which we have a good idea of who that is.