[PATCH 6.1 186/217] riscv: rewrite __kernel_map_pages() to fix sleeping in invalid context