Whamcloud - gitweb
LU-14306 sec: get rid of bad rss-counter state messages 99/41199/12
authorSebastien Buisson <sbuisson@ddn.com>
Mon, 11 Jan 2021 09:36:06 +0000 (09:36 +0000)
committerOleg Drokin <green@whamcloud.com>
Mon, 25 Jan 2021 19:19:03 +0000 (19:19 +0000)
commita71e0dd7f7aa445dc06a99c0a1ef34383cafa2e2
tree1735c724db3c14285dcd902b1ebdcd42ddfaa883
parent4f18e08099e51b682f6acb1cf9fea6d7d45f5fd7
LU-14306 sec: get rid of bad rss-counter state messages

When doing O_DIRECT IOs on encrypted files, messages about bad
rss-counter state can be seen in the console. The mm get confused
because we twist the Lustre pages used for RPCs so that they are
suitable for llcrypt API.
In order to do this properly, the original mapping on these pages
must be preserved outside of the encryption/decryption needs.

Fixes: 728036f256 ("LU-12275 sec: O_DIRECT for encrypted file")
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I80ebcd3f96c51a3d158d7ef66f23b8da13904c52
Reviewed-on: https://review.whamcloud.com/41199
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/cl_object.h
lustre/include/lustre_crypto.h
lustre/llite/rw26.c
lustre/obdclass/cl_io.c
lustre/obdclass/cl_page.c
lustre/osc/osc_request.c