Skip to content

Commit d2f49df

Browse files
committed
CP-30739: mask the ring events while in polling mode
Signed-off-by: Mark Syms <mark.syms@citrix.com>
1 parent dd6095c commit d2f49df

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

drivers/td-blkif.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,8 @@ tapdisk_start_polling(struct td_xenblkif *blkif)
362362

363363
/* Schedule the future 'stop polling' event */
364364
tapdisk_xenblkif_sched_stoppolling(blkif);
365+
366+
tapdisk_server_mask_event(tapdisk_xenblkif_evtchn_event_id(blkif), 1);
365367
}
366368
}
367369

@@ -383,6 +385,8 @@ tapdisk_xenblkif_cb_stoppolling(event_id_t id __attribute__((unused)),
383385

384386
/* Make the 'stop polling' event not fire again */
385387
tapdisk_xenblkif_unsched_stoppolling(blkif);
388+
389+
tapdisk_server_mask_event(tapdisk_xenblkif_evtchn_event_id(blkif), 0);
386390
}
387391
}
388392

0 commit comments

Comments
 (0)