| To: | Dave Chinner <david@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 09/14] xfs: introduce new locks for the log grant ticket wait queues |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Thu, 2 Dec 2010 06:48:06 -0500 |
| Cc: | Christoph Hellwig <hch@xxxxxxxxxxxxx>, xfs@xxxxxxxxxxx |
| In-reply-to: | <20101202021031.GT16922@dastard> |
| References: | <1290994712-21376-1-git-send-email-david@xxxxxxxxxxxxx> <1290994712-21376-10-git-send-email-david@xxxxxxxxxxxxx> <20101201131208.GA22455@xxxxxxxxxxxxx> <20101202021031.GT16922@dastard> |
| User-agent: | Mutt/1.5.21 (2010-09-15) |
On Thu, Dec 02, 2010 at 01:10:31PM +1100, Dave Chinner wrote:
> 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()...
Ok. Please add something like that to the patch description.
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH 03/14] xfs: convert log grant heads to LSN notation, Christoph Hellwig |
|---|---|
| Next by Date: | Re: Possible deadlock when deleting from realtime section, Denny Priebe |
| Previous by Thread: | Re: [PATCH 09/14] xfs: introduce new locks for the log grant ticket wait queues, Dave Chinner |
| Next by Thread: | Re: [PATCH 10/14] xfs: convert grant head manipulations to lockless algorithm, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |