From: Steven Whitehouse <swhiteho@redhat.com>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] [GFS2 PATCH 2/4] GFS2: Make block reservations more persistent
Date: Tue, 21 Oct 2014 10:24:08 +0100 [thread overview]
Message-ID: <54462638.20602@redhat.com> (raw)
In-Reply-To: <0850cbcb008c3510be212b2bf6c1ebff320dbb58.1413820606.git.rpeterso@redhat.com>
Hi,
On 20/10/14 17:37, Bob Peterson wrote:
> Before this patch, whenever a struct file (opened to allow writes) was
> closed, the multi-block reservation structure associated with the inode
> was deleted. That's a problem, especially when there are multiple writers.
> Applications that do open-write-close will suffer from greater levels
> of fragmentation and need to re-do work to perform write operations.
> This patch removes the reservation delete from the file close code so
> that they're more persistent until the inode is deleted.
> ---
> fs/gfs2/file.c | 7 -------
> 1 file changed, 7 deletions(-)
This doesn't seem like a good plan. If you run something like untar,
does that now leave gaps in the allocations? If there are applications
which are going open/write/close in a loop, then it seems like it is the
application that needs to be changed, rather than the filesystem,
Steve.
> diff --git a/fs/gfs2/file.c b/fs/gfs2/file.c
> index 7f4ed3d..2976019 100644
> --- a/fs/gfs2/file.c
> +++ b/fs/gfs2/file.c
> @@ -616,15 +616,8 @@ static int gfs2_open(struct inode *inode, struct file *file)
>
> static int gfs2_release(struct inode *inode, struct file *file)
> {
> - struct gfs2_inode *ip = GFS2_I(inode);
> -
> kfree(file->private_data);
> file->private_data = NULL;
> -
> - if (!(file->f_mode & FMODE_WRITE))
> - return 0;
> -
> - gfs2_rs_delete(ip, &inode->i_writecount);
> return 0;
> }
>
next prev parent reply other threads:[~2014-10-21 9:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-10-20 16:37 [Cluster-devel] [GFS2 PATCH 0/4] Patches to reduce GFS2 fragmentation Bob Peterson
2014-10-20 16:37 ` [Cluster-devel] [GFS2 PATCH 1/4] GFS2: Set of distributed preferences for rgrps Bob Peterson
2014-10-21 9:30 ` Steven Whitehouse
2014-10-21 12:30 ` Bob Peterson
2014-10-20 16:37 ` [Cluster-devel] [GFS2 PATCH 2/4] GFS2: Make block reservations more persistent Bob Peterson
2014-10-21 9:24 ` Steven Whitehouse [this message]
2014-10-20 16:37 ` [Cluster-devel] [GFS2 PATCH 3/4] GFS2: Only increase rs_sizehint Bob Peterson
2014-10-20 16:37 ` [Cluster-devel] [GFS2 PATCH 4/4] GFS2: If we use up our block reservation, request more next time Bob Peterson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54462638.20602@redhat.com \
--to=swhiteho@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.