Skip to content

Commit 1a3a6a2

Browse files
kot-begemot-ukrichardweinberger
authored andcommitted
um: Fix uml_mconsole stop/go
Moving to an EPOLL based IRQ controller broke uml_mconsole stop/go commands. This fixes it and restores stop/go functionality. Fixes: ff6a179 ("Epoll based IRQ controller") Signed-off-by: Anton Ivanov <anton.ivanov@cambridgegreys.com> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent f4f03f2 commit 1a3a6a2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

arch/um/drivers/mconsole_kern.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ void mconsole_go(struct mc_request *req)
224224

225225
void mconsole_stop(struct mc_request *req)
226226
{
227-
deactivate_fd(req->originating_fd, MCONSOLE_IRQ);
227+
block_signals();
228228
os_set_fd_block(req->originating_fd, 1);
229229
mconsole_reply(req, "stopped", 0, 0);
230230
for (;;) {
@@ -247,6 +247,7 @@ void mconsole_stop(struct mc_request *req)
247247
}
248248
os_set_fd_block(req->originating_fd, 0);
249249
mconsole_reply(req, "", 0, 0);
250+
unblock_signals();
250251
}
251252

252253
static DEFINE_SPINLOCK(mc_devices_lock);

0 commit comments

Comments
 (0)