···1140 long ret = 0;1141 int copy_ret;114200000001143 mutex_lock(&ctx->ring_lock);11441145 /* Access to ->ring_pages here is protected by ctx->ring_lock. */
···1140 long ret = 0;1141 int copy_ret;11421143+ /*1144+ * The mutex can block and wake us up and that will cause1145+ * wait_event_interruptible_hrtimeout() to schedule without sleeping1146+ * and repeat. This should be rare enough that it doesn't cause1147+ * peformance issues. See the comment in read_events() for more detail.1148+ */1149+ sched_annotate_sleep();1150 mutex_lock(&ctx->ring_lock);11511152 /* Access to ->ring_pages here is protected by ctx->ring_lock. */