On Tue, 29 Oct 2019 10:54:48 +0800
Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx> wrote:
Hi,No, allocating sdev is outside else branch.
On 10/29/19 6:29 AM, Jacob Pan wrote:
Hi Baolu,You are welcome.
Appreciate the thorough review, comments inline.
On Sat, 26 Oct 2019 10:01:19 +0800[...]
Lu Baolu<baolu.lu@xxxxxxxxxxxxxxx> wrote:
Hi,
But allocating a new sdev and adding device is in below else branch,If we are binding a new device to an existing/active PASID, the code+ * allow multiple bind calls with theI remember I ever pointed this out before. But I forgot how we
same PASID and pdev.
+ */
+ sdev->users++;
+ goto out;
+ }
addressed it. So forgive me if this has been addressed.
What if we have a valid bound svm but @dev doesn't belong to it
(a.k.a. @dev not in svm->devs list)?
will allocate a new sdev and add that to the svm->devs list.
so it will never reach there, right?