]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
nfs: don't create zero-length requests
authorBenjamin Coddington <bcodding@redhat.com>
Mon, 18 Jul 2016 14:41:57 +0000 (10:41 -0400)
committerJiri Slaby <jslaby@suse.cz>
Fri, 19 Aug 2016 07:51:16 +0000 (09:51 +0200)
commit4c81fa37349757cc1c32ef261ab187ed43e72d1e
treeb19b5e5d46f4f8501788d6293cf5e1859fd130ca
parent6c1ff19426bed544da5e0ee7be56c7f52a330e44
nfs: don't create zero-length requests

commit 149a4fddd0a72d526abbeac0c8deaab03559836a upstream.

NFS doesn't expect requests with wb_bytes set to zero and may make
unexpected decisions about how to handle that request at the page IO layer.
Skip request creation if we won't have any wb_bytes in the request.

Signed-off-by: Benjamin Coddington <bcodding@redhat.com>
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Reviewed-by: Weston Andros Adamson <dros@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
fs/nfs/write.c