Commit 52e59f7
accel/qaic: Synchronize access to DBC request queue head & tail pointer
Two threads of the same process can potential read and write parallelly to
head and tail pointers of the same DBC request queue. This could lead to a
race condition and corrupt the DBC request queue.
Fixes: ff13be8 ("accel/qaic: Add datapath")
Signed-off-by: Pranjal Ramajor Asha Kanojiya <quic_pkanojiy@quicinc.com>
Signed-off-by: Youssef Samir <youssef.abdulrahman@oss.qualcomm.com>
Reviewed-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Reviewed-by: Carl Vanderlip <carl.vanderlip@oss.qualcomm.com>
[jhugo: Add fixes tag]
Signed-off-by: Jeff Hugo <jeff.hugo@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20251007061837.206132-1-youssef.abdulrahman@oss.qualcomm.com1 parent 11f08c3 commit 52e59f7
3 files changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
100 | 102 | | |
101 | 103 | | |
102 | 104 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1356 | 1356 | | |
1357 | 1357 | | |
1358 | 1358 | | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
1359 | 1363 | | |
1360 | 1364 | | |
1361 | 1365 | | |
1362 | 1366 | | |
1363 | 1367 | | |
1364 | 1368 | | |
1365 | | - | |
| 1369 | + | |
1366 | 1370 | | |
1367 | 1371 | | |
1368 | 1372 | | |
1369 | 1373 | | |
1370 | 1374 | | |
1371 | 1375 | | |
1372 | 1376 | | |
1373 | | - | |
| 1377 | + | |
1374 | 1378 | | |
1375 | 1379 | | |
1376 | 1380 | | |
1377 | 1381 | | |
| 1382 | + | |
1378 | 1383 | | |
1379 | 1384 | | |
1380 | 1385 | | |
1381 | 1386 | | |
1382 | 1387 | | |
1383 | 1388 | | |
1384 | 1389 | | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
1385 | 1393 | | |
1386 | 1394 | | |
1387 | 1395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
454 | 454 | | |
455 | 455 | | |
456 | 456 | | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
457 | 460 | | |
458 | 461 | | |
459 | 462 | | |
| |||
0 commit comments