summaryrefslogtreecommitdiff
path: root/drivers/oprofile/timer_int.c
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2024-07-01 06:31:59 +0300
committerMichael S. Tsirkin <mst@redhat.com>2024-07-26 10:26:02 +0300
commit0823dc64586ba5ea13a7d200a5d33e4c5fa45950 (patch)
treefa58ab1e15843b6078657aca1d27ec0830835a89 /drivers/oprofile/timer_int.c
parent6d834691da474ed1c648753d3d3a3ef8379fa1c1 (diff)
downloadlinux-0823dc64586ba5ea13a7d200a5d33e4c5fa45950.tar.xz
vhost-vdpa: switch to use vmf_insert_pfn() in the fault handler
remap_pfn_page() should not be called in the fault handler as it may change the vma->flags which may trigger lockdep warning since the vma write lock is not held. Actually there's no need to modify the vma->flags as it has been set in the mmap(). So this patch switches to use vmf_insert_pfn() instead. Reported-by: Dragos Tatulea <dtatulea@nvidia.com> Tested-by: Dragos Tatulea <dtatulea@nvidia.com> Fixes: ddd89d0a059d ("vhost_vdpa: support doorbell mapping via mmap") Cc: stable@vger.kernel.org Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20240701033159.18133-1-jasowang@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Michal Kubiak <michal.kubiak@intel.com>
Diffstat (limited to 'drivers/oprofile/timer_int.c')
0 files changed, 0 insertions, 0 deletions