Repository navigation
Commit 6744628
rapidio: convert get_user_pages() --> pin_user_pages()
This code was using get_user_pages_fast(), in a "Case 2" scenario
(DMA/RDMA), using the categorization from [1]. That means that it's time
to convert the get_user_pages_fast() + put_page() calls to
pin_user_pages_fast() + unpin_user_pages() calls.
There is some helpful background in [2]: basically, this is a small
part of fixing a long-standing disconnect between pinning pages, and
file systems' use of those pages.
[1] Documentation/core-api/pin_user_pages.rst
[2] "Explicit pinning of user-space pages":
https://lwn.net/Articles/807108/
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Link: http://lkml.kernel.org/r/20200517235620.205225-3-jhubbard@nvidia.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>1 parent e1c3cdb commit 6744628
1 file changed
Lines changed: 5 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
572 | 572 | | |
573 | 573 | | |
574 | 574 | | |
575 | | - | |
576 | 575 | | |
577 | 576 | | |
578 | 577 | | |
579 | 578 | | |
580 | 579 | | |
581 | | - | |
582 | | - | |
| 580 | + | |
583 | 581 | | |
584 | 582 | | |
585 | 583 | | |
| |||
815 | 813 | | |
816 | 814 | | |
817 | 815 | | |
818 | | - | |
| 816 | + | |
819 | 817 | | |
820 | 818 | | |
821 | 819 | | |
| |||
862 | 860 | | |
863 | 861 | | |
864 | 862 | | |
865 | | - | |
| 863 | + | |
866 | 864 | | |
867 | 865 | | |
868 | 866 | | |
869 | 867 | | |
870 | 868 | | |
871 | 869 | | |
872 | 870 | | |
873 | | - | |
| 871 | + | |
874 | 872 | | |
875 | 873 | | |
876 | 874 | | |
| |||
951 | 949 | | |
952 | 950 | | |
953 | 951 | | |
954 | | - | |
955 | | - | |
| 952 | + | |
956 | 953 | | |
957 | 954 | | |
958 | 955 | | |
| |||
0 commit comments