Commit f86bbcf8 authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.1: Replace dprintk() in pnfs_update_layout with something less buggy



Dereferencing nfsi->layout in order to read plh_flags without holding
a spin lock is bug prone. Furthermore, the dprintk() tells you nothing
about whether or not the call succeeded.
Replace it with something that tells you about whether or not a valid
layout segment was returned for the inode in question.

Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 78e4e05c
Supports Markdown
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