Whamcloud - gitweb
LU-14711 osc: Do not attempt sending empty pages
authorOleg Drokin <green@whamcloud.com>
Wed, 28 Jul 2021 18:02:19 +0000 (14:02 -0400)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 3 Jul 2024 04:33:50 +0000 (04:33 +0000)
commite35bb6cfb3e89fb315efa82183176ce3740d97da
treeb4854f2db8e41423cb6825519f27452ebbcae7ad
parentac68c305748b8b120de2309d27cc401b1346bd19
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.

Lustre-change: https://review.whamcloud.com/44654
Lustre-commit: 1a409a3e6a74685970ee779ebe32917bf51eaf3a

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-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55593
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osc/osc_request.c