Commit 7aa6d35
btrfs: do nofs allocations when adding and removing qgroup relations
When adding or removing a qgroup relation we are doing a GFP_KERNEL
allocation which is not safe because we are holding a transaction
handle open and that can make us deadlock if the allocator needs to
recurse into the filesystem. So just surround those calls with a
nofs context.
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent 3d05cad commit 7aa6d35
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
1324 | 1325 | | |
1325 | 1326 | | |
1326 | 1327 | | |
| 1328 | + | |
1327 | 1329 | | |
1328 | 1330 | | |
1329 | 1331 | | |
1330 | 1332 | | |
1331 | 1333 | | |
1332 | 1334 | | |
| 1335 | + | |
| 1336 | + | |
1333 | 1337 | | |
| 1338 | + | |
1334 | 1339 | | |
1335 | 1340 | | |
1336 | 1341 | | |
| |||
1387 | 1392 | | |
1388 | 1393 | | |
1389 | 1394 | | |
| 1395 | + | |
1390 | 1396 | | |
1391 | 1397 | | |
1392 | 1398 | | |
| 1399 | + | |
| 1400 | + | |
1393 | 1401 | | |
| 1402 | + | |
1394 | 1403 | | |
1395 | 1404 | | |
1396 | 1405 | | |
| |||
0 commit comments