| To: | "Josef 'Jeff' Sipek" <jeffpc@xxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx |
|---|---|
| Subject: | Re: [PATCH 05/10] XFS: xfssyncd: don't call xfs_sync |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Sun, 14 Sep 2008 09:23:13 -0400 |
| In-reply-to: | <20080913203549.GK5811@disturbed> |
| References: | <1221314230-28618-1-git-send-email-david@xxxxxxxxxxxxx> <1221314230-28618-6-git-send-email-david@xxxxxxxxxxxxx> <20080913165856.GB17721@xxxxxxxxxxxxxx> <20080913203549.GK5811@disturbed> |
| User-agent: | Mutt/1.5.18 (2008-05-17) |
On Sun, Sep 14, 2008 at 06:35:49AM +1000, Dave Chinner wrote:
> On Sat, Sep 13, 2008 at 12:58:56PM -0400, Josef 'Jeff' Sipek wrote:
> > On Sat, Sep 13, 2008 at 11:57:05PM +1000, Dave Chinner wrote:
> > ...
> > > @@ -533,8 +538,15 @@ xfs_sync_worker(
> > > {
> > > int error;
> > >
> > > - if (!(mp->m_flags & XFS_MOUNT_RDONLY))
> > > - error = xfs_sync(mp, SYNC_FSDATA | SYNC_BDFLUSH | SYNC_ATTR);
> > > + if (!(mp->m_flags & XFS_MOUNT_RDONLY)) {
> > > + xfs_log_force(mp, (xfs_lsn_t)0, XFS_LOG_FORCE);
> > > + xfs_finish_reclaim_all(mp, 1, XFS_IFLUSH_DELWRI_ELSE_ASYNC);
> > > + /* dgc: errors ignored here */
> >
> > Again, why?
>
> Same again. No context for returning an error to someone useful,
> and will only fail in a shutdown situation.
We should probably put this is as comment her and in the previous spot
to avoid this question coming up again.
|
| Previous by Date: | Re: [PATCH 0/6] XFS: replace the mount inode list with radix tree traversals V4, Christoph Hellwig |
|---|---|
| Next by Date: | Re: [PATCH 0/10] XFS: clean up sync code, Christoph Hellwig |
| Previous by Thread: | Re: [PATCH 05/10] XFS: xfssyncd: don't call xfs_sync, Dave Chinner |
| Next by Thread: | [PATCH 07/10] XFS: make SYNC_DELWRI no longer use xfs_sync V2, Dave Chinner |
| Indexes: | [Date] [Thread] [Top] [All Lists] |