Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753464AbaFPNw6 (ORCPT ); Mon, 16 Jun 2014 09:52:58 -0400 Received: from bastet.se.axis.com ([195.60.68.11]:52044 "EHLO bastet.se.axis.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751478AbaFPNw5 (ORCPT ); Mon, 16 Jun 2014 09:52:57 -0400 Date: Mon, 16 Jun 2014 15:52:51 +0200 From: Jesper Nilsson To: Peter Hurley Cc: Greg Kroah-Hartman , linux-serial@vger.kernel.org, linux-kernel@vger.kernel.org, One Thousand Gnomes , Martin Schwidefsky , Heiko Carstens , linux-s390@vger.kernel.org, Mikael Starvik , Jesper Nilsson , linux-cris-kernel@axis.com, Samuel Ortiz , "David S. Miller" Subject: Re: [PATCH tty-next 17/22] tty: Remove ASYNC_CLOSING Message-ID: <20140616135251.GK732@axis.com> References: <1402924639-5164-1-git-send-email-peter@hurleysoftware.com> <1402924639-5164-18-git-send-email-peter@hurleysoftware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1402924639-5164-18-git-send-email-peter@hurleysoftware.com> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 16, 2014 at 09:17:14AM -0400, Peter Hurley wrote: > Since at least before 2.6.30, tty drivers that do not drop the tty lock > while closing cannot observe ASYNC_CLOSING set while holding the > tty lock; this includes the tty driver's open() and hangup() methods, > since the tty core calls these methods holding the tty lock. > > For these drivers, waiting for ASYNC_CLOSING to clear while opening > is not required, since this condition cannot occur. Similarly, even > when the open() method drops and reacquires the tty lock after > blocking, ASYNC_CLOSING cannot be set (again, for drivers that > do not drop the tty lock while closing). > > Now that tty port drivers no longer drop the tty lock while closing > (since 'tty: Remove tty_wait_until_sent_from_close()'), the same > conditions apply: waiting for ASYNC_CLOSING to clear while opening > is not required, nor is re-checking ASYNC_CLOSING after dropping and > reacquiring the tty lock while blocking (eg., in *_block_til_ready()). > > Since ASYNC_CLOSING is not tested elsewhere, it is safe to remove > the flag. > > CC: Martin Schwidefsky > CC: Heiko Carstens > CC: linux-s390@vger.kernel.org > CC: Mikael Starvik For the CRIS part: Acked-by: Jesper Nilsson > CC: linux-cris-kernel@axis.com > CC: Samuel Ortiz > CC: "David S. Miller" > Signed-off-by: Peter Hurley /^JN - Jesper Nilsson -- Jesper Nilsson -- jesper.nilsson@axis.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/