summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorWeimin Xiong <xiongwm2026@163.com>2026-07-16 13:43:53 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-08-19 06:38:47 -0400
commit11f79e2780043ad94424a8db02a7a9022ba93252 (patch)
tree03007702446bfb98998c2321eb8b3a186aab67bd /scripts/stackusage
parent315584667fd1d1dcf721fbe4e1aca6e2415b3f25 (diff)
downloadlinux-11f79e2780043ad94424a8db02a7a9022ba93252.tar.gz
linux-11f79e2780043ad94424a8db02a7a9022ba93252.zip
vdpa/mlx5: roll back MR update after VQ setup failure
mlx5_vdpa_change_map() must install the new MR before rebuilding or resuming virtqueues, because both paths read the MR keys from mvdev->mres.mr[]. If rebuilding the virtqueue resources fails, the new MR must not remain installed after its reference is released. Keep an extra reference to the old MR before replacing it. On setup failure, restore the old MR; the saved reference then becomes the map reference, while replacing the new MR drops its map reference. Make mlx5_vdpa_change_map() consume new_mr on all error paths so that set_map_data() does not release an MR already released during rollback. v2: - Keep the new MR installed while virtqueues are rebuilt. - Restore the old MR only after setup_vq_resources() fails. Signed-off-by: Weimin Xiong <xiongwm2026@163.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260716054353.155805-1-xiongwm2026@163.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions