Re: [PATCH 09/14] xfs: introduce new locks for the log grant ticket wait queues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Dec 01, 2010 at 08:12:08AM -0500, Christoph Hellwig wrote:
> > +		/* co-ordinate with xfs_log_force_shutdown */
> > +		if (XLOG_FORCED_SHUTDOWN(log)) {
> > +			spin_unlock(&log->l_grant_reserve_lock);
> > +			goto error_return;
> > +		}
> 
> Where is this coming from?  Otherwise the patch looks good to me.

To handles the race condition between xfs_log_force_shutdown() clearing
all the tickets off the queue and a racing log reserve that had
already checked the shutdown flag and was spinning waiting for the
reserve lock to add the ticket to the queue. The race condition is
documented in xfs_log_force_shutdown()...

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux