Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4075329yba; Tue, 7 May 2019 11:40:46 -0700 (PDT) X-Google-Smtp-Source: APXvYqyRs5DWpXsiklxQoL9Ptvu+BLZzy4aiWsIMkPfZ1I43v3t5CrjlJvU0cvU5xSTuWV81zlHV X-Received: by 2002:a63:4c06:: with SMTP id z6mr31704921pga.296.1557254446434; Tue, 07 May 2019 11:40:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557254446; cv=none; d=google.com; s=arc-20160816; b=ZnZVJK/N7rC9Ydfrvm0GBBXmMaJs35XHDyg+BC8Qh/7ejesCDpvU2zV79/Yguw9yHF 4KFdKzGAqjYURpS+cK6EdpNSweocihQZXZZaniK9fH1dAh/Z1LhtQGylhma5tkOFQyTJ sULo/MEw8dJptNGqvjePXV1oM98S9+T2JbQ1BGMTI2EWgIkdwae8NU9wCu5OFpywt9kv stO+cwwK7urjKlO+y32++KaIUvYQtplscMGidj6pMcz2JXr8xBLXJO20wsyXG4ASR2k2 XKyrJAxspunstkEpyGRaosE2B0yQetW/sXnWbXhzQon9fvmDD3pqsMfdB0Nw2TV6S/kH bCRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:date:cc:to:from:subject:message-id; bh=efVeHUDWcPuN/T/JKGIVSMk5qrbrbPdqB7pHO01ziR0=; b=H2om7VXxxK4IGObB9MNrk61L1hrF1X+9kCjPIT/EanzlUzsbp1yuwHNvHmKLH70DRh fAAu0P3h50AH19Ng7C7YKAM8caA8mxX4Sf546S49xyuxIECSZdKxaTkX9Ma169CnMfQp YPCsSiUjgiV73QKeugF7rYx11T0N2khHP5wIOF/xNcSm3Q5T8q2oikzlbZVHCEfw9sDP jSCdYpkJi4Hn2HHqfON1/LmuN4oUYxuYVkISuoH4rgO5fPow96Gdck2HJ33g4AeGrLG7 bvnUkbwLBI86U0lYs5xa4fkGNAwmyZCPkCfDqaEmKliUTK/E57J57CMHaZKyqu1colXu bLuA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n13si19124850pgu.495.2019.05.07.11.40.30; Tue, 07 May 2019 11:40:46 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727617AbfEGSiO (ORCPT + 99 others); Tue, 7 May 2019 14:38:14 -0400 Received: from shadbolt.e.decadent.org.uk ([88.96.1.126]:32956 "EHLO shadbolt.e.decadent.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726634AbfEGSiO (ORCPT ); Tue, 7 May 2019 14:38:14 -0400 Received: from [167.98.27.226] (helo=deadeye) by shadbolt.decadent.org.uk with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hO4ye-0007Da-Sv; Tue, 07 May 2019 19:38:08 +0100 Received: from ben by deadeye with local (Exim 4.92) (envelope-from ) id 1hO4ye-0003xw-Fr; Tue, 07 May 2019 19:38:08 +0100 Message-ID: <55c963dce43d8cf614a5401a23750d3b30399e45.camel@decadent.org.uk> Subject: Re: [PATCH 3.16 23/99] tty/ldsem: Wake up readers after timed out down_write() From: Ben Hutchings To: Dmitry Safonov <0x7f454c46@gmail.com> Cc: open list , stable , Andrew Morton , Denis Kirjanov , Greg Kroah-Hartman , Jiri Slaby , kernel test robot , Dmitry Safonov , Peter Zijlstra Date: Tue, 07 May 2019 19:38:03 +0100 In-Reply-To: <2aa7996d-708a-b6b9-3197-94814b708881@gmail.com> References: <0fb333560ad4ed9d5c8bc0f71a46fee5b448f9e6.camel@decadent.org.uk> <2aa7996d-708a-b6b9-3197-94814b708881@gmail.com> Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-fyFX1eJkFug4YCxhk3cw" User-Agent: Evolution 3.30.5-1 MIME-Version: 1.0 X-SA-Exim-Connect-IP: 167.98.27.226 X-SA-Exim-Mail-From: ben@decadent.org.uk X-SA-Exim-Scanned: No (on shadbolt.decadent.org.uk); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-fyFX1eJkFug4YCxhk3cw Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, 2019-04-02 at 15:39 +0100, Dmitry Safonov wrote: > On 4/2/19 3:32 PM, Ben Hutchings wrote: > > On Tue, 2019-04-02 at 15:22 +0100, Dmitry Safonov wrote: [...] > > > - "tty: Hold tty_ldisc_lock() during tty_reopen()" commit 83d817f4107= 0 > > > with follow-up fixup "tty: Don't hold ldisc lock in tty_reopen() if > > > ldisc present" > > > commit d3736d82e816 > > [...] > >=20 > > I will include these in a later update, unless you think they are > > really urgent and should be added to this one. >=20 > Well, I thought worth to mention those patches, but in reality haven't > checked if they are applicable to v3.16. > It's just I remember "tty: Hold tty_ldisc_lock() during tty_reopen()" > was the main fix in the set, as many people suffered from issue under > it, so I thought strange that only a side-patch (which can lead to soft > lockup, so probably also important) is ported. But I managed to forget > that the code has changes since v3.16. I couldn't see how to apply these to 3.16, so you will need to send me backports if they are needed. They are also missing from 3.18 and 4.4. Ben. --=20 Ben Hutchings Teamwork is essential - it allows you to blame someone else. --=-fyFX1eJkFug4YCxhk3cw Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEErCspvTSmr92z9o8157/I7JWGEQkFAlzR0IsACgkQ57/I7JWG EQndXBAAhp51IeuLn3MOsPrqYMJqn/E9ATZ/IK7LgZxrPNX5Pses/FdLwbn7pA+k JZgIdVeqqNcOn0hLC/63loyJkwi2cEfdfRcymCILgcJM72SJ4TdOEkY/BB7aUj9g x+/8yPm2w8HvIe/jFdkpFdfeKS7mtSaL+xJhIqmlS5xHMJKctujUV1Jo3wX94yDz +JgfwStnJWme8N4hf/3Hcw3vipl6p6qBskeyds7tKhilDxCqRvJzeGs/Ah9VEJkX oATVckH7gK0bzvHXv/lyE2g1w1Fyc2QybylCzKMSBU28oIAXIsV2kk4/MRr7MuRZ p7n5pB9ZGYMzT4e4ZPFFq6fX6EdJunpQM6zKFZcLYCKC2YR6ry4rCtYREufWQ/yC KMq55Fy0+d+EI3i/o2UeA8nJQAESMoDkC/I5q7cRbx+Lui8GP9CqYSXLbxsNWEM0 nzUVV93/xB5pgV8LYN01rvCSueQ5iiRMU8sebKiF3j1kUtzAVOeF4xM6VZXpmXf5 7tNqv3vNo3ynBeJiYPFn++izsnvMmDw9ATHqYDJJccxD0MB4hP75Yot8507akslq 1Xb5rih26+hAi6uZ55rFll4K2vy9A5oGUWL+v0HFh6XxctbHtw6yUundKRvn2RSz 1p0LhZvtRSM6PX3k5G2XZHhSr8drtmnDGEsgsKvIEqivRRs3tcA= =6x9T -----END PGP SIGNATURE----- --=-fyFX1eJkFug4YCxhk3cw--