From owner-svn-src-user@FreeBSD.ORG Mon Mar 23 11:47:02 2015 Return-Path: Delivered-To: svn-src-user@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F078C841; Mon, 23 Mar 2015 11:47:02 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DB097C8B; Mon, 23 Mar 2015 11:47:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t2NBl2n3024745; Mon, 23 Mar 2015 11:47:02 GMT (envelope-from jceel@FreeBSD.org) Received: (from jceel@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t2NBl2Uo024744; Mon, 23 Mar 2015 11:47:02 GMT (envelope-from jceel@FreeBSD.org) Message-Id: <201503231147.t2NBl2Uo024744@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: jceel set sender to jceel@FreeBSD.org using -f From: Jakub Wojciech Klama Date: Mon, 23 Mar 2015 11:47:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r280362 - user/jceel/soc2014_evdev/head/sys/dev/evdev X-SVN-Group: user MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-user@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the experimental " user" src tree" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2015 11:47:03 -0000 Author: jceel Date: Mon Mar 23 11:47:01 2015 New Revision: 280362 URL: https://svnweb.freebsd.org/changeset/base/280362 Log: Add PCATCH to mtx_sleep() so it can be interrupted. Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Modified: user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c ============================================================================== --- user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Mon Mar 23 03:43:59 2015 (r280361) +++ user/jceel/soc2014_evdev/head/sys/dev/evdev/cdev.c Mon Mar 23 11:47:01 2015 (r280362) @@ -186,7 +186,7 @@ evdev_read(struct cdev *dev, struct uio return (EWOULDBLOCK); } - mtx_sleep(client, &client->ec_buffer_mtx, 0, "evrea", 0); + mtx_sleep(client, &client->ec_buffer_mtx, PCATCH, "evrea", 0); } for (;;) {