Whamcloud - gitweb
LU-9828 ptlrpc: Do not assert when bd_nob_transferred != 0 59/28759/2
authorDoug Oucharek <doug.s.oucharek@intel.com>
Wed, 31 May 2017 21:39:12 +0000 (14:39 -0700)
committerJohn L. Hammond <john.hammond@intel.com>
Thu, 14 Sep 2017 20:06:30 +0000 (20:06 +0000)
commit39a275578e5d77d14f5b50b3c2a3fc924081e03c
treefa4f2bcb94bf00999eb902222050acfe4c729b2b
parent1d2f2c734504cd72b29c110ef531aebc59408655
LU-9828 ptlrpc: Do not assert when bd_nob_transferred != 0

There is a case in the routine ptlrpc_register_bulk() where we were
asserting if bd_nob_transferred != 0 when not resending.  There is
evidence that network errors can create a situation where
this does happen.  So we should not be asserting!

This patch changes that assert to an error return code of -EIO.

Lustre-change: https://review.whamcloud.com/28491
Lustre-commit: e6490ea6cf0b793c0b47f17ac5a5fa3a2a136e0d

Signed-off-by: Doug Oucharek <doug.s.oucharek@intel.com>
Change-Id: I6a73ca1b04a86f187744d3b8b5d46df71d95e416
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Sonia Sharma <sonia.sharma@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28759
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Amir Shehata <amir.shehata@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/ptlrpc/niobuf.c