[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-s390
Subject: Re: [PATCH v10 05/16] s390/vfio-ap: implement in-use callback for vfio_ap driver
From: Tony Krowiak <akrowiak () linux ! ibm ! com>
Date: 2020-09-29 14:00:01
Message-ID: b6810e67-1e50-d62c-8c9e-57429e8a239f () linux ! ibm ! com
[Download RAW message or body]
On 9/25/20 5:29 AM, Halil Pasic wrote:
> On Fri, 21 Aug 2020 15:56:05 -0400
> Tony Krowiak <akrowiak@linux.ibm.com> wrote:
>
>> +
>> +bool vfio_ap_mdev_resource_in_use(unsigned long *apm, unsigned long *aqm)
>> +{
>> + bool in_use;
>> +
>> + mutex_lock(&matrix_dev->lock);
>> + in_use = !!vfio_ap_mdev_verify_no_sharing(NULL, apm, aqm);
>> + mutex_unlock(&matrix_dev->lock);
> See also my comment for patch 4. AFAIU as soon as you release the lock
> the in_use may become outdated in any moment.
See my response to your comment for patch 4.
>
>> +
>> + return in_use;
>> +}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic