]> git.ipfire.org Git - thirdparty/linux.git/commit
vduse: take out allocations from vduse_dev_alloc_coherent
authorEugenio Pérez <eperezma@redhat.com>
Mon, 19 Jan 2026 14:33:02 +0000 (15:33 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Jan 2026 20:32:17 +0000 (15:32 -0500)
commit489d76520612abf9a4ede4344349105406c91a73
tree9c74ff3b8d3ea3749a153916dc6b9b937b6a8965
parent766e1749c0ef6a09651be9b8a8283d508c322b58
vduse: take out allocations from vduse_dev_alloc_coherent

The function vduse_dev_alloc_coherent will be called under rwlock in
next patches.  Make it out of the lock to avoid increasing its fail
rate.

Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20260119143306.1818855-10-eperezma@redhat.com>
drivers/vdpa/vdpa_user/iova_domain.c
drivers/vdpa/vdpa_user/iova_domain.h
drivers/vdpa/vdpa_user/vduse_dev.c