]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4f93558165500e2dd65629da89229dfc7d60f759
tree9e6ca370dbb72c5cb5e17a824aafcab97651a68c
parent5ba001e9305c3961384cfb08a67f54bd714eda4c
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