Trond Myklebust 14abcb0bf5 NFSv4: Fix up mirror allocation
There are a number of callers of nfs_pageio_complete() that want to
continue using the nfs_pageio_descriptor without needing to call
nfs_pageio_init() again. Examples include nfs_pageio_resend() and
nfs_pageio_cond_complete().

The problem is that nfs_pageio_complete() also calls
nfs_pageio_cleanup_mirroring(), which frees up the array of mirrors.
This can lead to writeback errors, in the next call to
nfs_pageio_setup_mirroring().

Fix by simply moving the allocation of the mirrors to
nfs_pageio_setup_mirroring().

Link: https://bugzilla.kernel.org/show_bug.cgi?id=196709
Reported-by: JianhongYin <yin-jianhong@163.com>
Cc: stable@vger.kernel.org # 4.0+
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
2017-08-20 10:36:35 -04:00
..
2017-07-21 16:26:01 -07:00
2017-05-10 13:03:38 -07:00
2017-07-13 17:12:04 -04:00
2017-07-13 16:00:15 -04:00
2017-07-13 14:35:37 -07:00
2017-07-13 17:12:04 -04:00
2017-07-13 15:58:04 -04:00
2015-02-03 11:06:34 -08:00
2016-03-31 00:30:15 -04:00
2017-07-13 15:58:04 -04:00
2017-04-20 13:39:35 -04:00
2015-04-23 15:16:14 -04:00
2017-07-13 14:35:37 -07:00
2015-04-23 15:16:14 -04:00
2017-07-13 16:00:15 -04:00
2016-05-17 15:47:55 -04:00
2016-07-30 16:33:25 -07:00
2017-08-20 10:36:35 -04:00
2017-07-13 15:58:04 -04:00
2017-04-20 14:00:41 -04:00
2017-07-13 14:35:37 -07:00