[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z69eloo_7LM6NneO@cassiopeiae>
Date: Fri, 14 Feb 2025 16:17:42 +0100
From: Danilo Krummrich <dakr@...nel.org>
To: David Hildenbrand <david@...hat.com>
Cc: linux-kernel@...r.kernel.org, dri-devel@...ts.freedesktop.org,
nouveau@...ts.freedesktop.org, Karol Herbst <kherbst@...hat.com>,
Lyude Paul <lyude@...hat.com>, David Airlie <airlied@...il.com>,
Simona Vetter <simona@...ll.ch>,
Alistair Popple <apopple@...dia.com>
Subject: Re: [PATCH v1 1/2] nouveau/svm: fix missing folio unlock + put after
make_device_exclusive_range()
On Fri, Jan 24, 2025 at 07:15:23PM +0100, David Hildenbrand wrote:
> In case we have to retry the loop, we are missing to unlock+put the
> folio. In that case, we will keep failing make_device_exclusive_range()
> because we cannot grab the folio lock, and even return from the function
> with the folio locked and referenced, effectively never succeeding the
> make_device_exclusive_range().
>
> While at it, convert the other unlock+put to use a folio as well.
>
> This was found by code inspection.
>
> Fixes: 8f187163eb89 ("nouveau/svm: implement atomic SVM access")
> Signed-off-by: David Hildenbrand <david@...hat.com>
Applied to drm-misc-fixes, thanks!
Powered by blists - more mailing lists