summaryrefslogtreecommitdiff
path: root/eio.c
diff options
context:
space:
mode:
Diffstat (limited to 'eio.c')
-rw-r--r--eio.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/eio.c b/eio.c
index 58a8c84..249ecea 100644
--- a/eio.c
+++ b/eio.c
@@ -591,9 +591,7 @@ etp_poll (void)
static void
etp_cancel (ETP_REQ *req)
{
- X_LOCK (wrklock);
- req->flags |= EIO_FLAG_CANCELLED;
- X_UNLOCK (wrklock);
+ req->cancelled = 1;
eio_grp_cancel (req);
}