| To: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
|---|---|
| Subject: | Re: [PATCH 09/27] xfs: fix filesystsem freeze race in xfs_trans_alloc |
| From: | Alex Elder <aelder@xxxxxxx> |
| Date: | Tue, 5 Jul 2011 17:36:25 -0500 |
| Cc: | <xfs@xxxxxxxxxxx> |
| In-reply-to: | <20110701094604.200765470@xxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20110701094321.936534538@xxxxxxxxxxxxxxxxxxxxxx> <20110701094604.200765470@xxxxxxxxxxxxxxxxxxxxxx> |
| Reply-to: | <aelder@xxxxxxx> |
On Fri, 2011-07-01 at 05:43 -0400, Christoph Hellwig wrote: > As pointed out by Jan xfs_trans_alloc can race with a concurrent filesystem > freeze when it sleeps during the memory allocation. Fix this by moving the > wait_for_freeze call after the memory allocation. This means moving the > freeze into the low-level _xfs_trans_alloc helper, which thus grows a new > argument. Also fix up some comments in that area while at it. > > Signed-off-by: Christoph Hellwig <hch@xxxxxx> > Reviewed-by: Dave Chinner <david@xxxxxxxxxxxxx> Looks good. The race has to do with the check of mp->m_active_trans in xfs_quiesce_attr(), which is called by the freeze_fs method, xfs_fs_freeze() Reviewed-by: Alex Elder <aelder@xxxxxxx> |
| Previous by Date: | Re: [PATCH 08/27] xfs: improve sync behaviour in the fact of aggressive dirtying, Alex Elder |
|---|---|
| Next by Date: | Re: [PATCH 10/27] xfs: remove i_transp, Alex Elder |
| Previous by Thread: | [PATCH 09/27] xfs: fix filesystsem freeze race in xfs_trans_alloc, Christoph Hellwig |
| Next by Thread: | [PATCH 12/27] xfs: factor out xfs_dir2_leaf_find_entry, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |