Commit a4db2f7
committed
firmware: arm_ffa: Move memory allocation outside the mutex locking
JIRA: https://issues.redhat.com/browse/RHEL-102692
commit 27e850c
Author: Sudeep Holla <sudeep.holla@arm.com>
Date: Wed, 28 May 2025 09:49:42 +0100
The notifier callback node allocation is currently done while holding
the notify_lock mutex. While this is safe even if memory allocation may
sleep, we need to move the allocation outside the locked region in
preparation to move from using muxtes to rwlocks.
Move the memory allocation to avoid potential sleeping in atomic context
once the locks are moved from mutex to rwlocks.
Fixes: e057344 ("firmware: arm_ffa: Add interfaces to request notification callbacks")
Message-Id: <20250528-ffa_notif_fix-v1-2-5ed7bc7f8437@arm.com>
Reviewed-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Marcin Juszkiewicz <mjuszkiewicz@redhat.com>
Message-ID: <2e157ea409eff06998e85e5400ac462b33012bab.1752653152.git.mjuszkiewicz@redhat.com>
Message-ID: <db7df8ed141e0d3ae7d6c6a48c77b8e4c654a4cc.1752659027.git.mjuszkiewicz@redhat.com>1 parent e4ed6ce commit a4db2f7
1 file changed
+24
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1250 | 1250 | | |
1251 | 1251 | | |
1252 | 1252 | | |
1253 | | - | |
1254 | | - | |
1255 | | - | |
| 1253 | + | |
| 1254 | + | |
1256 | 1255 | | |
1257 | 1256 | | |
1258 | 1257 | | |
1259 | | - | |
| 1258 | + | |
1260 | 1259 | | |
1261 | 1260 | | |
1262 | 1261 | | |
| |||
1270 | 1269 | | |
1271 | 1270 | | |
1272 | 1271 | | |
1273 | | - | |
1274 | | - | |
1275 | | - | |
1276 | | - | |
1277 | | - | |
1278 | | - | |
1279 | | - | |
1280 | | - | |
1281 | | - | |
1282 | | - | |
1283 | | - | |
1284 | | - | |
| 1272 | + | |
1285 | 1273 | | |
1286 | 1274 | | |
1287 | 1275 | | |
| |||
1303 | 1291 | | |
1304 | 1292 | | |
1305 | 1293 | | |
1306 | | - | |
1307 | | - | |
| 1294 | + | |
1308 | 1295 | | |
1309 | 1296 | | |
1310 | 1297 | | |
| |||
1335 | 1322 | | |
1336 | 1323 | | |
1337 | 1324 | | |
| 1325 | + | |
1338 | 1326 | | |
1339 | 1327 | | |
1340 | 1328 | | |
1341 | 1329 | | |
1342 | 1330 | | |
1343 | 1331 | | |
1344 | 1332 | | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
| 1340 | + | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
1345 | 1344 | | |
1346 | 1345 | | |
1347 | 1346 | | |
1348 | 1347 | | |
1349 | 1348 | | |
1350 | 1349 | | |
1351 | 1350 | | |
1352 | | - | |
1353 | | - | |
1354 | | - | |
1355 | | - | |
| 1351 | + | |
| 1352 | + | |
1356 | 1353 | | |
1357 | 1354 | | |
1358 | | - | |
1359 | | - | |
| 1355 | + | |
1360 | 1356 | | |
1361 | 1357 | | |
1362 | 1358 | | |
1363 | 1359 | | |
1364 | 1360 | | |
1365 | 1361 | | |
| 1362 | + | |
| 1363 | + | |
1366 | 1364 | | |
| 1365 | + | |
| 1366 | + | |
1367 | 1367 | | |
1368 | 1368 | | |
1369 | 1369 | | |
| |||
0 commit comments