diff options
author | Dave Chinner <david@fromorbit.com> | 2009-04-06 18:42:11 +0200 |
---|---|---|
committer | Christoph Hellwig <hch@brick.lst.de> | 2009-04-06 18:42:11 +0200 |
commit | c626d174cfe38e7f0545d074c299527892cd8c45 (patch) | |
tree | 8f7dfa34a77bc415d9dc604d79fbae98ffe47a14 /fs/xfs/linux-2.6/xfs_aops.h | |
parent | 705db3fd4660174a27418bbcb874d209a76044eb (diff) | |
download | kernel_samsung_tuna-c626d174cfe38e7f0545d074c299527892cd8c45.zip kernel_samsung_tuna-c626d174cfe38e7f0545d074c299527892cd8c45.tar.gz kernel_samsung_tuna-c626d174cfe38e7f0545d074c299527892cd8c45.tar.bz2 |
xfs: prevent unwritten extent conversion from blocking I/O completion
Unwritten extent conversion can recurse back into the filesystem due
to memory allocation. Memory reclaim requires I/O completions to be
processed to allow the callers to make progress. If the I/O
completion workqueue thread is doing the recursion, then we have a
deadlock situation.
Move unwritten extent completion into it's own workqueue so it
doesn't block I/O completions for normal delayed allocation or
overwrite data.
Signed-off-by: Dave Chinner <david@fromorbit.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_aops.h')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_aops.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/xfs/linux-2.6/xfs_aops.h b/fs/xfs/linux-2.6/xfs_aops.h index 1dd5288..221b3e6 100644 --- a/fs/xfs/linux-2.6/xfs_aops.h +++ b/fs/xfs/linux-2.6/xfs_aops.h @@ -19,6 +19,7 @@ #define __XFS_AOPS_H__ extern struct workqueue_struct *xfsdatad_workqueue; +extern struct workqueue_struct *xfsconvertd_workqueue; extern mempool_t *xfs_ioend_pool; /* |