NFSv4.1: Replace dprintk() in pnfs_update_layout with something less buggy
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Wed, 26 Sep 2012 15:21:40 +0000 (11:21 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 28 Sep 2012 20:03:08 +0000 (16:03 -0400)
commitf86bbcf85db32596a0484477d1b8042005709049
tree38c8e879c737cc4a333fc44ca37430e07706b941
parent78e4e05c643768af170e5a4b21712d9a7a26cce5
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: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/pnfs.c