]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
pNFS: Fix potential corruption of page being written
authorKazuo Ito <ito_kazuo_g3@lab.ntt.co.jp>
Thu, 14 Feb 2019 09:36:58 +0000 (18:36 +0900)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 22:33:55 +0000 (17:33 -0500)
commit97ae91bbf3a70fc8cee3c9030564cfc892cc8cee
tree85286f5e9682492ed23368211ee078b17c40fac5
parentbf211ca1a84c570607137f4a556870ac034e318c
pNFS: Fix potential corruption of page being written

nfs_want_read_modify_write() didn't check for !PagePrivate when pNFS
block or SCSI layout was in use, therefore we could lose data forever
if the page being written was filled by a read before completion.

Signed-off-by: Kazuo Ito <ito_kazuo_g3@lab.ntt.co.jp>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/file.c