]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: Fix a missed page unlock after pg_doio()
authorBenjamin Coddington <bcodding@redhat.com>
Thu, 18 Oct 2018 19:01:48 +0000 (15:01 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 18 Oct 2018 21:20:57 +0000 (17:20 -0400)
commit1f12be1bb087e4c276f0e1c10150c4d1a80e5ad9
tree728f68714faa6fddc69ea60e8ff8a9f61d3ed09c
parent7d40278a13f718fe44896ba977fdc0efb8758311
nfs: Fix a missed page unlock after pg_doio()

We must check pg_error and call error_cleanup after any call to pg_doio.
Currently, we are skipping the unlock of a page if we encounter an error in
nfs_pageio_complete() before handing off the work to the RPC layer.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/pagelist.c