OSDN Git Service

nfsd/blocklayout: pretend we can send deviceid notifications
authorChristoph Hellwig <hch@lst.de>
Mon, 27 Apr 2015 12:50:13 +0000 (14:50 +0200)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 4 May 2015 16:02:37 +0000 (12:02 -0400)
commit40cdc7a530c7a075557651a071354bb42b99df08
tree0647504caf067e89f419f83573c40bf2671a0a1c
parent5ebe6afaf0057ac3eaeb98defd5456894b446d22
nfsd/blocklayout: pretend we can send deviceid notifications

Commit df52699e4fcef ("NFSv4.1: Don't cache deviceids that have no
notifications") causes the Linux NFS client to stop caching deviceid's
unless a server pretends to support deviceid notifications.  While this
behavior is stupid and the language around this area in rfc5661 is a
mess carified by an errata that I submittted, Trond insists on this
behavior.  Not caching deviceids degrades block layout performance
massively as a GETDEVICEINFO is fairly expensive.

So add this hack to make the Linux client happy again.

Cc: stable@vger.kernel.org
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/blocklayout.c