Does avoiding userspace being trampled by the kernel mean avoiding a context switch? Does the kernel write to userspace-accessible memory that the spinlock guards?
Unrelated, but what does "open-coded" mean? I never seem to find an obvious answer online.