Skip to content
Commit 3dc14735 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

pNFS/flexfiles: Fix an Oopsable condition when connection to the DS fails



If the attempt to connect to a DS fails inside ff_layout_pg_init_read or
ff_layout_pg_init_write, then we currently end up clearing the layout
segment carried by the struct nfs_pageio_descriptor, causing an Oops
when we later call into ff_layout_read_pagelist/ff_layout_write_pagelist.

The fix is to ensure we return the layout and then retry.

Fixes: 446ca219 ("pNFS/flexfiles: When initing reads or writes, we...")
Cc: stable@vger.kernel.org # v4.7+
Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent d138027a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment