]> git.karo-electronics.de Git - linux-beck.git/commit
pnfs_nfs: fix _cancel_empty_pagelist
authorWeston Andros Adamson <dros@monkey.org>
Fri, 17 Jun 2016 20:48:24 +0000 (16:48 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Fri, 24 Jun 2016 16:01:00 +0000 (12:01 -0400)
commit5e3a98883e7ebdd1440f829a9e9dd5c3d2c5903b
tree71716567b64b5e73b59d7a96a480caac1061e5c6
parentcea7f829d3ea6e87a67220bc417260b858e278ff
pnfs_nfs: fix _cancel_empty_pagelist

pnfs_generic_commit_cancel_empty_pagelist calls nfs_commitdata_release,
but that is wrong: nfs_commitdata_release puts the open context, something
that isn't valid until nfs_init_commit is called, which is never the case
when pnfs_generic_commit_cancel_empty_pagelist is called.

This was introduced in "nfs: avoid race that crashes nfs_init_commit".

Signed-off-by: Weston Andros Adamson <dros@primarydata.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/pnfs_nfs.c