diff options
| author | Weimin Xiong <xiongwm2026@163.com> | 2026-07-16 13:43:53 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2026-08-19 06:38:47 -0400 |
| commit | 11f79e2780043ad94424a8db02a7a9022ba93252 (patch) | |
| tree | 03007702446bfb98998c2321eb8b3a186aab67bd /scripts/stackusage | |
| parent | 315584667fd1d1dcf721fbe4e1aca6e2415b3f25 (diff) | |
| download | linux-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
