From 8294c65784df2e3ef131e06d21477c15fa27aab8 Mon Sep 17 00:00:00 2001 From: riastradh Date: Mon, 27 Aug 2018 15:28:16 +0000 Subject: [PATCH] Let's try not to step on each others' toes, shall we? --- sys/external/bsd/drm2/linux/linux_reservation.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/external/bsd/drm2/linux/linux_reservation.c b/sys/external/bsd/drm2/linux/linux_reservation.c index c4b688bb502e..1cd5492b80b8 100644 --- a/sys/external/bsd/drm2/linux/linux_reservation.c +++ b/sys/external/bsd/drm2/linux/linux_reservation.c @@ -1,4 +1,4 @@ -/* $NetBSD: linux_reservation.c,v 1.8 2018/08/27 15:25:14 riastradh Exp $ */ +/* $NetBSD: linux_reservation.c,v 1.9 2018/08/27 15:28:16 riastradh Exp $ */ /*- * Copyright (c) 2018 The NetBSD Foundation, Inc. @@ -30,7 +30,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.8 2018/08/27 15:25:14 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: linux_reservation.c,v 1.9 2018/08/27 15:28:16 riastradh Exp $"); #include #include @@ -1035,7 +1035,7 @@ record: rcu_read_unlock(); mutex_enter(&rpoll->rp_lock); selrecord(curlwp, &rpoll->rp_selq); - if (rpoll->rp_claimed) + if (!rpoll->rp_claimed) claimed = rpoll->rp_claimed = true; mutex_exit(&rpoll->rp_lock); recorded = true;