From patchwork Wed Jan 9 03:55:01 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 155043 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp254712jaa; Tue, 8 Jan 2019 19:55:52 -0800 (PST) X-Google-Smtp-Source: ALg8bN6ppsa8xKFxJe/k9cXqs9kuIPeQ5GPokI1J/+vNP49XzUs71KoBaqWxjA5hJbqVFmY72TeQ X-Received: by 2002:a63:170c:: with SMTP id x12mr3869554pgl.364.1547006152842; Tue, 08 Jan 2019 19:55:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547006152; cv=none; d=google.com; s=arc-20160816; b=U9auUTD2d7/HURYmLqXqYdydh8SwtVFCSYAKVEBA0a1kXGUF5YRuwUFW6/CNgArdLv bfYTEfFBN5AmfWxHaVxqXBFCrlGxBbbkjZGNIOVIE6WvB+IjFkckdUIsbQPLDGBwlZ39 2QSEAfZ6ttNdPXpCemnhKlcbmnwPl2qXBcIe1uqpc7kAfN08Ami3teBnkhfiIVMyWcNx YkvrzBtPHULJHdOBJ8cZHNqVYW99i2VFbPAU5YWTD0/2QQysA2oaefOB0I1yiEY0rdyP DnU0LwfRwv8QV5t1MKvzJ1Dcub84H5B16sokuKpKnORUBE7tchF+7sfhFfQi0Ym1j3y3 PPEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=YMApujsUN1ywHKAbbwqwbxwfhoGR1g+9jtipb5hc8fg=; b=fAxKLqMZ9gGMHtfqKmqa5tN3ySpLUWcF5SphSxP5PPGbydOFslbb+x3HlYchh3gcRT 6LV+IL28lZKF/SIZmXbA1GUe9NNV0WMFGhcbuqtNmjKqRktzaOhnlc5VecBorg+5VEQ9 k4jW9jy5oQVdJyKzMTSnvnx3IKEDgv2pQc3XezutN35EXnP1ZB7Rd8ZyJ6jYP1Ks3LgN cOvXnu8YS7fi9S4slIJZiw4i3b9v3/7JvBPqTqM57QCsDFdKhESjnWe9jtkW0+Ibej55 BXvIOiQBaAJgvRfd+8Hnoj8xBw7W4aLV079/iauzty8B950q8a5bRKtKaxV2AJ/ZASNA RDfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=en0QQLc2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u21si61249842pgm.21.2019.01.08.19.55.52; Tue, 08 Jan 2019 19:55:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@pobox.com header.s=sasl header.b=en0QQLc2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729327AbfAIDzv (ORCPT + 31 others); Tue, 8 Jan 2019 22:55:51 -0500 Received: from pb-smtp1.pobox.com ([64.147.108.70]:51069 "EHLO pb-smtp1.pobox.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729053AbfAIDzt (ORCPT ); Tue, 8 Jan 2019 22:55:49 -0500 Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id E979F119307; Tue, 8 Jan 2019 22:55:46 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; s=sasl; bh=Ok46tFcJgtlME1pfsnHQK5+Pv zg=; b=en0QQLc2+VxmZCMeF3q0DJ6epSt36wSmNXyaqmxlDk+VwPxLbN6Vi2J3l CasnCSLDeM2IobKgJ7SCsWeHPsDmdfFdQFgBRvKJHsHuqddW6Kh6X2tQXwnB9svO gCZ7BcwQg1kSS0L9zUPoBR4OJQ++pB7yMx90BxuvERQ5+fluks= Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id E10AF119306; Tue, 8 Jan 2019 22:55:46 -0500 (EST) Received: from yoda.home (unknown [70.82.104.228]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 5D2BC1192FE; Tue, 8 Jan 2019 22:55:46 -0500 (EST) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 7F4A72DA05DD; Tue, 8 Jan 2019 22:55:45 -0500 (EST) From: Nicolas Pitre To: Greg Kroah-Hartman Cc: Dave Mielke , linux-kernel@vger.kernel.org Subject: [PATCH 3/6] vt: invoke notifier on screen size change Date: Tue, 8 Jan 2019 22:55:01 -0500 Message-Id: <20190109035504.8413-4-nicolas.pitre@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190109035504.8413-1-nicolas.pitre@linaro.org> References: <20190109035504.8413-1-nicolas.pitre@linaro.org> MIME-Version: 1.0 X-Pobox-Relay-ID: 71B86960-13C2-11E9-9F5D-70EFDD2159A7-78420484!pb-smtp1.pobox.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org User space using poll() on /dev/vcs devices are not awaken when a screen size change occurs. Let's fix that. Signed-off-by: Nicolas Pitre --- drivers/tty/vt/vt.c | 1 + 1 file changed, 1 insertion(+) -- 2.20.1 diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c index 5b8b0e33f9..bba75560d1 100644 --- a/drivers/tty/vt/vt.c +++ b/drivers/tty/vt/vt.c @@ -1272,6 +1272,7 @@ static int vc_do_resize(struct tty_struct *tty, struct vc_data *vc, if (con_is_visible(vc)) update_screen(vc); vt_event_post(VT_EVENT_RESIZE, vc->vc_num, vc->vc_num); + notify_update(vc); return err; }