1. A method, comprising: receiving, by a kernel executed by a processing device, an input/output (I/O) request from a thread corresponding to an application, the thread executing using a first stack; allocating a second stack in kernel space of the processing device, the second stack having higher priority than the first stack; switching execution of the thread to the second stack; processing the I/O request synchronously using the second stack; and switching execution of the thread to the first stack when execution of the thread is blocked while processing the I/O request using the second stack.