From: Benny Halevy <bhalevy@panasas.com>
To: andros@netapp.com
Cc: linux-nfs@vger.kernel.org
Subject: Re: [PATCH 1/2] SQUASHME pnfs-submit remove pnfs4_layout_reclaim
Date: Wed, 21 Jul 2010 20:40:06 +0300 [thread overview]
Message-ID: <4C4730F6.8000701@panasas.com> (raw)
In-Reply-To: <1279723416-4467-1-git-send-email-andros@netapp.com>
On Jul. 21, 2010, 17:43 +0300, andros@netapp.com wrote:
> From: Andy Adamson <andros@netapp.com>
>
> Not used. Destroy all layouts on lease expiration instead.
What do you mean by not used?
You've just deleted two uses in this patch...
Benny
>
> Signed-off-by: Andy Adamson <andros@netapp.com>
> ---
> fs/nfs/nfs4proc.c | 13 -------------
> 1 files changed, 0 insertions(+), 13 deletions(-)
>
> diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c
> index fd6438d..05f072c 100644
> --- a/fs/nfs/nfs4proc.c
> +++ b/fs/nfs/nfs4proc.c
> @@ -1094,17 +1094,6 @@ static struct nfs_open_context *nfs4_state_find_open_context(struct nfs4_state *
> return ERR_PTR(-ENOENT);
> }
>
> -static void pnfs4_layout_reclaim(struct nfs4_state *state)
> -{
> -#if defined(CONFIG_NFS_V4_1)
> - /* FIXME: send gratuitous layout commits and return with the reclaim
> - * flag during grace period
> - */
> - pnfs_destroy_layout(NFS_I(state->inode));
> - pnfs_set_layout_stateid(NFS_I(state->inode)->layout, &zero_stateid);
> -#endif /* CONFIG_NFS_V4_1 */
> -}
> -
> static struct nfs4_opendata *nfs4_open_recoverdata_alloc(struct nfs_open_context *ctx, struct nfs4_state *state)
> {
> struct nfs4_opendata *opendata;
> @@ -1181,7 +1170,6 @@ static int nfs4_open_recover(struct nfs4_opendata *opendata, struct nfs4_state *
> sizeof(state->stateid.u.data));
> write_sequnlock(&state->seqlock);
> }
> - pnfs4_layout_reclaim(state);
> return 0;
> }
>
> @@ -1236,7 +1224,6 @@ static int nfs4_open_reclaim(struct nfs4_state_owner *sp, struct nfs4_state *sta
> return PTR_ERR(ctx);
> ret = nfs4_do_open_reclaim(ctx, state);
> put_nfs_open_context(ctx);
> - pnfs4_layout_reclaim(state);
> return ret;
> }
>
prev parent reply other threads:[~2010-07-21 17:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-21 14:43 [PATCH 1/2] SQUASHME pnfs-submit remove pnfs4_layout_reclaim andros
2010-07-21 14:43 ` [PATCH 2/2] SQUASHME pnfs-submit destroy all layouts upon lease expiration andros
2010-07-21 17:40 ` Benny Halevy [this message]
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=4C4730F6.8000701@panasas.com \
--to=bhalevy@panasas.com \
--cc=andros@netapp.com \
--cc=linux-nfs@vger.kernel.org \
/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.