Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp488255imm; Fri, 31 Aug 2018 05:55:22 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdb6RCOcZc/t1JDuDDrjCBc2qH8ArUNNAVMkyy8ybijgDhVlsrD8XkoxE9its/X1QwiT/B2V X-Received: by 2002:a17:902:1745:: with SMTP id i63-v6mr15231852pli.3.1535720122335; Fri, 31 Aug 2018 05:55:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535720122; cv=none; d=google.com; s=arc-20160816; b=mqEwmrFtr2lE+7cLeVPrpZzGIxVWP/cKrQ77QAkdINLByjvO6b9RVSrA8zV9zYgahL GN+DSoVg9gMpeXuN8FY+x2ltLmGYwdZ78x3r9oZxUgYSCDy8I+qmwLbw6k3T5ACz+NmQ +9WkI1kht7hKmycAhY9L4Wbj+TN5yrgt6OlpCQTEwNgtHpGkhMGdHsKYSbthJguZaU1N rAM6BOwZBlRM1l2HdVBYEaSKEp/tW3LulQGdGdmxLHiLf67UiL15B6au2QRQ3+INxOx/ Zwdzj3/g4quA03F76iMI3wdMg6BtSgWrD40EB0tKTReF5cLwX5ku9bMU47KSWLLGmLJD v0VA== 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:date:cc:to:from:subject:message-id :dkim-signature:arc-authentication-results; bh=eKbNuiRflFTOoI075dTWihwFLTBIB+AUDOUAZ3tZLcQ=; b=nyKxgpsRzwKOBgLxGhcOWNsNwl6vED5bDtjuUTP8JvjwmZ42OhElnvU3BlF2zDooUc 1iMRZg49tWMHd7Z9lg0rqY+oqf5BzAxcNJBkwqYPPCmx64/LkX1naE9/E0OEvHEsxxbH RqeuJd8gbu/VYZcOkRVZtUs8kKU+GrU29/hGE4Wjk6NnAnibwG/iPBoIwX0TEHuRIHoH A3R+4CujXYHzcmzUH/bZIdADpwFPu2X/FbGQWp3eCQ4SQmeJHisEWMpwBUz8Qa1tBy8d HQMs0/NaGZ2mUFwlubX+UvhOAUZgqHKplguEGMbY1PNr2zu+YUbKsk6+EZGqRCSoIhEe WoiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@arista.com header.s=googlenew header.b=DinZr9wc; 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=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n125-v6si9420289pga.376.2018.08.31.05.55.07; Fri, 31 Aug 2018 05:55:22 -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; dkim=pass header.i=@arista.com header.s=googlenew header.b=DinZr9wc; 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=pass (p=QUARANTINE sp=REJECT dis=NONE) header.from=arista.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727721AbeHaQCK (ORCPT + 99 others); Fri, 31 Aug 2018 12:02:10 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:44553 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727207AbeHaQCK (ORCPT ); Fri, 31 Aug 2018 12:02:10 -0400 Received: by mail-ed1-f67.google.com with SMTP id s10-v6so8824306edb.11 for ; Fri, 31 Aug 2018 04:55:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=message-id:subject:from:to:cc:date:in-reply-to:references :mime-version:content-transfer-encoding; bh=eKbNuiRflFTOoI075dTWihwFLTBIB+AUDOUAZ3tZLcQ=; b=DinZr9wcTy1Ezmdldomlv7NIWc/UmBDqC3RKYLlH+0iJeppEXo+3JlDisFiwdMEleg NRDS4cltr5prCSPqfe+SR4ppP7wlRKHFdKyK+8yjWitRuKdUUOEwPrzXGGmK/qrMCMbr HDWxJoupJSJbWUR/xkoCcc0DnoUky5vrTlH7gPaqRWdZ/b8Qd0c429k73W4p4J9TtKe9 q+jxEm5B7Bo/J3mV2SMKWJDL7gKcVAUr5/sWnJqA0twxm+sWYPGGbE4ZmRljMhRrZtmS 4EE5jEcAUhsYFjSN8H/EVxtE7otzdEIWWCNoK11spDNjK6fCGx+KVGNjvXAsNldHOLJX pZ3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:cc:date:in-reply-to :references:mime-version:content-transfer-encoding; bh=eKbNuiRflFTOoI075dTWihwFLTBIB+AUDOUAZ3tZLcQ=; b=GpZfSWICdlcXpiuNUSWLJjhQjF+Qu01j0T4dOSn3xCqD/WHyVaEOQrRdebtotCQklr KyotPy7BchPBEjaJwUbgIWFUQ7N8i3J48xPA/56CwJMr05f0gN0RO/zG8Ev05jzKZ3CT FrsgDF4vIPIGf7A2cXRxLbfIInu09RiPJ6LyPTq4HLmi7EElPnms6A3BhP1f6xj4FpFP 12Q0sFjeOL88nrlZr1/34xBUi/J1INGTuWzbUo/v4V8ZMCBsNGZsgy0gUB9oF6Fvm3N2 dLHNIyggsSntG3B1mYMwvf9If76QECbsW/ldfC6CrRTSSB8EaDUnKp5z7WNJR4QunAJR ZtGw== X-Gm-Message-State: APzg51Df+uXcCGo0csQ2s1vAM+ADk2b0Su0N+7aa0RBJdUXRTVKtvFyL ZDi4mMTFL1sKBM1bwExs5J/AxA== X-Received: by 2002:a50:95dd:: with SMTP id x29-v6mr17819920eda.3.1535716501426; Fri, 31 Aug 2018 04:55:01 -0700 (PDT) Received: from dhcp.ire.aristanetworks.com ([217.173.96.166]) by smtp.gmail.com with ESMTPSA id w41-v6sm4332832edd.92.2018.08.31.04.54.59 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 31 Aug 2018 04:55:00 -0700 (PDT) Message-ID: <1535716498.23560.78.camel@arista.com> Subject: Re: [PATCH 1/4] tty: Drop tty->count on tty_reopen() failure From: Dmitry Safonov To: Jiri Slaby , linux-kernel@vger.kernel.org Cc: Daniel Axtens , Dmitry Safonov <0x7f454c46@gmail.com>, Sergey Senozhatsky , Dmitry Vyukov , Tan Xiaojun , Peter Hurley , Pasi =?ISO-8859-1?Q?K=E4rkk=E4inen?= , Greg Kroah-Hartman , Michael Neuling , Mikulas Patocka , stable@vger.kernel.org Date: Fri, 31 Aug 2018 12:54:58 +0100 In-Reply-To: References: <20180829022353.23568-1-dima@arista.com> <20180829022353.23568-2-dima@arista.com> <1535559207.23560.55.camel@arista.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.24.6 (3.24.6-1.fc26) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-08-31 at 08:47 +0200, Jiri Slaby wrote: > On 08/29/2018, 06:13 PM, Dmitry Safonov wrote: > > > I would just do: > > > if (!retval) > > > tty->count++; > > > here. Nobody from ldiscs should rely on tty->count. > > > > I thought about that and probably should have described in commit > > message why I haven't done that: I prefer to keep it as was as I > > did Cc > > stable tree - to keep the chance of regression to minimum. > > > > I agree that your way is cleaner, but probably it may be done as > > cleanup on top for linux-next.. > > Agreed, so care to cook it up as 5/4 in this series :)? Sure, will resend v2 with that and all tested-by. -- Thanks, Dmitry