summaryrefslogtreecommitdiffstats
path: root/drivers/regulator/helpers.c
diff options
context:
space:
mode:
authorQing Huang <qing.huang@oracle.com>2017-05-19 01:33:53 +0200
committerDoug Ledford <dledford@redhat.com>2017-06-01 23:20:12 +0200
commit53376fedb9da54c0d3b0bd3a6edcbeb681692909 (patch)
tree74f8555562491ee89c8674d4b8ca052d48d12034 /drivers/regulator/helpers.c
parentRDMA/uverbs: Declare local function static and add brackets to sizeof (diff)
downloadlinux-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/regulator/helpers.c')
0 files changed, 0 insertions, 0 deletions