| To: | David Chinner <dgc@xxxxxxx> |
|---|---|
| Subject: | Re: Review - flush blockdev on close |
| From: | Christoph Hellwig <hch@xxxxxxxxxxxxx> |
| Date: | Tue, 24 Apr 2007 09:56:47 +0100 |
| Cc: | xfs-dev <xfs-dev@xxxxxxx>, xfs-oss <xfs@xxxxxxxxxxx> |
| In-reply-to: | <20070424014249.GF48531920@melbourne.sgi.com> |
| References: | <20070424014249.GF48531920@melbourne.sgi.com> |
| Sender: | xfs-bounce@xxxxxxxxxxx |
| User-agent: | Mutt/1.4.2.2i |
On Tue, Apr 24, 2007 at 11:42:49AM +1000, David Chinner wrote:
>
> As suggested by Christoph, we probably should flush the block
> device as we complete the process of unmounting the filesystem.
> Patch attached.
Looks good.
>
> Index: 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_buf.c
> ===================================================================
> --- 2.6.x-xfs-new.orig/fs/xfs/linux-2.6/xfs_buf.c 2007-04-24
> 09:32:22.000000000 +1000
> +++ 2.6.x-xfs-new/fs/xfs/linux-2.6/xfs_buf.c 2007-04-24 11:12:42.181361346
> +1000
> @@ -1464,6 +1464,7 @@ xfs_free_buftarg(
> int external)
> {
> xfs_flush_buftarg(btp, 1);
> + xfs_blkdev_issue_flush(btp);
> if (external)
> xfs_blkdev_put(btp->bt_bdev);
> xfs_free_bufhash(btp);
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: review [1 of 3]: lazy superblock counters - core kernel, Christoph Hellwig |
|---|---|
| Next by Date: | Re: review: don't hold ilock when calling vn_iowait, Christoph Hellwig |
| Previous by Thread: | Review - flush blockdev on close, David Chinner |
| Next by Thread: | [RFC PATCH 3/3] replace xfs_iflush_all with xfs_reclaim_all, Christoph Hellwig |
| Indexes: | [Date] [Thread] [Top] [All Lists] |