Whamcloud - gitweb
LU-13805 llite: add mm to dio struct 47/49947/31
authorPatrick Farrell <pfarrell@whamcloud.com>
Wed, 8 Feb 2023 19:01:24 +0000 (14:01 -0500)
committerOleg Drokin <green@whamcloud.com>
Wed, 6 Sep 2023 06:14:53 +0000 (06:14 +0000)
commit7df8bd69fbe59afba0a43fe19e7a5b1d2c3fd115
tree723b3ca6a8bce7117cd34bbc7d7f0b91b8b3d45f
parenta2b722214a99c8c65fb764a67770b47a1195691a
LU-13805 llite: add mm to dio struct

When copying to or from userspace, we must use the mm from
the userspace thread.  This can be done either by running
in that thread or borrowing its mm.  Unaligned DIO does
some memory movement to userspace in ptlrpcd threads, so it
requires the user mm be stored in the sub dio.

This will be used by the main unaligned DIO patch and has
been split out for reviewability.

Signed-off-by: Patrick Farrell <pfarrell@whamcloud.com>
Change-Id: I419cb9f1899b8c8f9790ce25b3aba1d6f07397aa
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49947
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Qian Yingjin <qian@ddn.com>
lustre/autoconf/lustre-core.m4
lustre/include/cl_object.h
lustre/obdclass/cl_io.c