Skip to content

Commit 272c743

Browse files
kot-begemot-ukgregkh
authored andcommitted
um: Fix uml_mconsole stop/go
commit 1a3a6a2 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent c0a6a54 commit 272c743

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
@@ -223,7 +223,7 @@ void mconsole_go(struct mc_request *req)
223223

224224
void mconsole_stop(struct mc_request *req)
225225
{
226-
deactivate_fd(req->originating_fd, MCONSOLE_IRQ);
226+
block_signals();
227227
os_set_fd_block(req->originating_fd, 1);
228228
mconsole_reply(req, "stopped", 0, 0);
229229
for (;;) {
@@ -246,6 +246,7 @@ void mconsole_stop(struct mc_request *req)
246246
}
247247
os_set_fd_block(req->originating_fd, 0);
248248
mconsole_reply(req, "", 0, 0);
249+
unblock_signals();
249250
}
250251

251252
static DEFINE_SPINLOCK(mc_devices_lock);

0 commit comments

Comments
 (0)