xprtrdma: mount reports "Invalid mount option" if memreg mode not supported
authorChuck Lever <chuck.lever@oracle.com>
Wed, 28 May 2014 14:33:00 +0000 (10:33 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 4 Jun 2014 12:56:39 +0000 (08:56 -0400)
commitcdd9ade711599e7672a635add0406080856f8b92
tree9e6ca370dbb72c5cb5e17a824aafcab97651a68c
parentf10eafd3a6ce9da7e96999c124b643ea6c4921f3
xprtrdma: mount reports "Invalid mount option" if memreg mode not supported

If the selected memory registration mode is not supported by the
underlying provider/HCA, the NFS mount command reports that there was
an invalid mount option, and fails. This is misleading.

Reporting a problem allocating memory is a lot closer to the truth.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/verbs.c