Whamcloud - gitweb
LU-13470 ptlrpc: return proper write count from ping_store 04/38304/2
authorOleg Drokin <green@whamcloud.com>
Tue, 21 Apr 2020 22:28:33 +0000 (18:28 -0400)
committerOleg Drokin <green@whamcloud.com>
Thu, 7 May 2020 05:41:44 +0000 (05:41 +0000)
commit16d62976d212d94f7a3a5e61817b5ce98a4be3fd
tree82cf1193235adab6139247ce19f8aca5cee6f97b
parent52b5f4a5c3fc942f2b6aef9dbed780bd2c2a6798
LU-13470 ptlrpc: return proper write count from ping_store

If we return 0 as a measure of success, that is actually taken
by userspace as "we wrote 0 bytes, but there's no error, so
they want us to retry". So tell them we ate all their data
instead to make them happy.

Interesting that when you do shell-redirect it enters the
retry loop, but badarea_io does not.

Change-Id: Ieb0f8bcd4f010ab4375ea6f65f6ea00248a236cb
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/38304
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/ptlrpc/lproc_ptlrpc.c