diff options
author | Qing Huang <qing.huang@oracle.com> | 2017-05-19 01:33:53 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-06-01 23:20:12 +0200 |
commit | 53376fedb9da54c0d3b0bd3a6edcbeb681692909 (patch) | |
tree | 74f8555562491ee89c8674d4b8ca052d48d12034 /drivers/spi/spi-fsl-lpspi.c | |
parent | RDMA/uverbs: Declare local function static and add brackets to sizeof (diff) | |
download | linux-53376fedb9da54c0d3b0bd3a6edcbeb681692909.tar.xz linux-53376fedb9da54c0d3b0bd3a6edcbeb681692909.zip |
RDMA/core: not to set page dirty bit if it's already set.
This change will optimize kernel memory deregistration operations.
__ib_umem_release() used to call set_page_dirty_lock() against every
writable page in its memory region. Its purpose is to keep data
synced between CPU and DMA device when swapping happens after mem
deregistration ops. Now we choose not to set page dirty bit if it's
already set by kernel prior to calling __ib_umem_release(). This
reduces memory deregistration time by half or even more when we ran
application simulation test program.
Signed-off-by: Qing Huang <qing.huang@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/spi/spi-fsl-lpspi.c')
0 files changed, 0 insertions, 0 deletions