Trond Myklebust 56517ab958 NFS: Fix an Oopsable condition in __nfs_pageio_add_request()
Ensure that nfs_pageio_error_cleanup() resets the mirror array contents,
so that the structure reflects the fact that it is now empty.
Also change the test in nfs_pageio_do_add_request() to be more robust by
checking whether or not the list is empty rather than relying on the
value of pg_count.

Fixes: a7d42ddb3099 ("nfs: add mirroring support to pgio layer")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
2021-05-26 06:36:13 -04:00
..
2021-02-26 15:49:51 -07:00
2021-05-07 11:23:41 -07:00
2020-08-15 08:26:55 -07:00
2020-05-27 10:10:12 -04:00
2021-05-07 11:23:41 -07:00
2021-05-07 11:23:41 -07:00
2021-05-07 11:23:41 -07:00
2021-04-05 09:04:20 -04:00
2021-01-24 14:27:20 +01:00
2021-01-24 14:27:20 +01:00
2021-05-07 11:23:41 -07:00
2021-05-07 11:23:41 -07:00
2020-12-17 12:15:03 -08:00
2021-05-07 11:23:41 -07:00