diff options
| author | Mike Snitzer <[email protected]> | 2023-06-14 00:05:34 +0000 |
|---|---|---|
| committer | Mike Snitzer <[email protected]> | 2023-06-15 16:46:59 +0000 |
| commit | 722d90822321497e2837cfc9000202e256e6b32f (patch) | |
| tree | ba57e0acdb653334c3ace1a5be99daeecbe2b2ce /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c | |
| parent | dm thin metadata: check fail_io before using data_sm (diff) | |
| download | kernel-722d90822321497e2837cfc9000202e256e6b32f.tar.gz kernel-722d90822321497e2837cfc9000202e256e6b32f.zip | |
dm thin: fix issue_discard to pass GFP_NOIO to __blkdev_issue_discard
issue_discard() passes GFP_NOWAIT to __blkdev_issue_discard() despite
its code assuming bio_alloc() always succeeds.
Commit 3dba53a958a75 ("dm thin: use __blkdev_issue_discard for async
discard support") clearly shows where things went bad:
Before commit 3dba53a958a75, dm-thin.c's open-coded
__blkdev_issue_discard_async() properly handled using GFP_NOWAIT.
Unfortunately __blkdev_issue_discard() doesn't and it was missed
during review.
Cc: [email protected]
Signed-off-by: Mike Snitzer <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_pt.c')
0 files changed, 0 insertions, 0 deletions
