FAILED: patch "[PATCH] nfs: remove WARN_ON_ONCE from nfs_direct_good_bytes" failed to apply to 3.19-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 3.19-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
Quoted 1 line
From
05f54903d9d370a4cd302a85681304d3ec59e5c1Mon Sep 17 00:00:00 2001
From: Peng Tao <[email protected]>
Date: Thu, 9 Apr 2015 23:02:17 +0800
Subject: [PATCH] nfs: remove WARN_ON_ONCE from nfs_direct_good_bytes
For flexfiles driver, we might choose to read from mirror index other than 0 while mirror_count is always 1 for read.
Reported-by Jean Spector <[email protected]>
Cc <[email protected]> # v3.19+
Cc Weston Andros Adamson <[email protected]>
Signed-off-by Peng Tao <[email protected]>
Signed-off-by Trond Myklebust <[email protected]>
fs/nfs/direct.c +0 -2
@@ -129,8 +129,6 @@ nfs_direct_good_bytes(struct nfs_direct_req *dreq, struct nfs_pgio_header *hdr)int i;ssize_t count; -WARN_ON_ONCE (hdr->pgio_mirror_idx >= dreq->mirror_count); -if (dreq->mirror_count ==1 ) { dreq->mirrors[hdr->pgio_mirror_idx].count += hdr->good_bytes; dreq->count += hdr->good_bytes;