Whamcloud - gitweb
LU-12093 osc: don't check capability for every page 78/34478/4
authorLi Dongyang <dongyangli@ddn.com>
Thu, 21 Mar 2019 03:05:14 +0000 (14:05 +1100)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2019 05:12:33 +0000 (05:12 +0000)
commitc1cab789aaa25bbb4062208aeb2822fde3007cd4
tree56916acd1f412f93243eb8d8bffc58aa76c57839
parent230d4500d5a9dfada392199d77fc413382f24750
LU-12093 osc: don't check capability for every page

We check CFS_CAP_SYS_RESOURCE for every page during the io.
This is expensive on apparmor enabled systems, we can only
do that once for the entire io and use the result when
submitting the pages.

Don't init the oap_brw_flags during osc_page_init(), the flag
will be set in either osc_queue_async_io() or osc_page_submit().

Signed-off-by: Li Dongyang <dongyangli@ddn.com>
Change-Id: I0e664f43ce31c276b33476fdff11794185ab0a3b
Reviewed-on: https://review.whamcloud.com/34478
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_osc.h
lustre/osc/osc_cache.c
lustre/osc/osc_io.c
lustre/osc/osc_page.c