Re: [PATCH 2/4] vdpa: Protect vdpa reset with cf_mutex

2022-01-11 Thread Jason Wang
On Wed, Jan 12, 2022 at 2:34 AM Eli Cohen wrote: > > Call reset using the wrapper function vdpa_reset() to make sure the > operation is serialized with cf_mutex. > > This comes to protect from the following possible scenario: > > vhost_vdpa_set_status() could call the reset op. Since the call is n

Re: [PATCH 2/4] vdpa: Protect vdpa reset with cf_mutex

2022-01-11 Thread Si-Wei Liu
On 1/11/2022 10:33 AM, Eli Cohen wrote: Call reset using the wrapper function vdpa_reset() to make sure the operation is serialized with cf_mutex. This comes to protect from the following possible scenario: vhost_vdpa_set_status() could call the reset op. Since the call is not protected by c