From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (Postfix) with ESMTP id D919229DF8 for ; Mon, 28 Apr 2014 12:26:38 -0500 (CDT) Received: from cuda.sgi.com (cuda3.sgi.com [192.48.176.15]) by relay1.corp.sgi.com (Postfix) with ESMTP id CA56E8F8039 for ; Mon, 28 Apr 2014 10:26:38 -0700 (PDT) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id FrmNzIj2amI5mAxV for ; Mon, 28 Apr 2014 10:26:37 -0700 (PDT) Message-ID: <535E8F4C.8000003@sandeen.net> Date: Mon, 28 Apr 2014 12:26:36 -0500 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: [PATCH] xfs: test for shut down fs in xfs_dir_fsync() References: <535E8344.2070209@redhat.com> <20140428164754.GA17472@infradead.org> <535E8D67.3010504@redhat.com> <535E8E47.2040701@sgi.com> In-Reply-To: <535E8E47.2040701@sgi.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: Mark Tinguely , Eric Sandeen Cc: Christoph Hellwig , Boris Ranto , xfs-oss On 4/28/14, 12:22 PM, Mark Tinguely wrote: > On 04/28/14 12:18, Eric Sandeen wrote: >> On 4/28/14, 11:47 AM, Christoph Hellwig wrote: >>> On Mon, Apr 28, 2014 at 11:35:16AM -0500, Eric Sandeen wrote: >>>> Similar to xfs_file_fsync(), I think xfs_dir_fsync() needs >>>> to test for a shut down fs, >>> >>> It probably should. >>> >>>> lest we go down paths we'll >>>> never be able to complete; Boris reported that during some >>>> stress tests he had threads stuck in xlog_cil_force_lsn >>>> via xfs_dir_fsync(). >>> >>> But this could still happen if we get a shutdown coming in after that >>> test. >> >> True... that looked a bit hairier to sort out. :( >> >> -Eric >> > > > Are the sync lsn look okay? Was there an error writing the iclog buffer? > > xfs_do_force_shutdown() will also do a xlog_cil_force_lsn() via the > xfs_log_force_umount if the log buffer write was not in error. That > should be the same or later than this lsn. I don't have full details, unfortunately, just the sysrq backtraces. -Eric > --Mark. > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs