Whamcloud - gitweb
LU-14711 osc: Do not attempt sending empty pages 54/44654/3
authorOleg Drokin <green@whamcloud.com>
Wed, 28 Jul 2021 18:02:19 +0000 (14:02 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 4 Oct 2021 16:55:43 +0000 (16:55 +0000)
commit1a409a3e6a74685970ee779ebe32917bf51eaf3a
treeef825809960cd54c579aff9641dc46e5c9d5ba18
parent09e2e43241bdf2bd4e1f3dae0f90a261f0a8d5ed
LU-14711 osc: Do not attempt sending empty pages

Do not crash if trying to send a lock-prolonging emtpy read
to an old server, if the server does not support short reads.
Otherwise the client crashes when access the NULL page.

Test-Parameters: trivial
Fixes: 564070343ac4 ("LU-14711 osc: Notify server if cache discard takes a long time")
Change-Id: Icae7bf3ef16c45d33894b3c5fbac15b1a98c39d9
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/44654
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
lustre/osc/osc_request.c