Commit 537e11c
quota: Prevent memory allocation recursion while holding dq_lock
As described in commit 02117b8 ("f2fs: Set GF_NOFS in
read_cache_page_gfp while doing f2fs_quota_read"), we must not enter
filesystem reclaim while holding the dq_lock. Prevent this more generally
by using memalloc_nofs_save() while holding the lock.
Link: https://lore.kernel.org/r/20220605143815.2330891-2-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jan Kara <jack@suse.cz>1 parent 10e1407 commit 537e11c
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
425 | 426 | | |
426 | 427 | | |
427 | 428 | | |
| 429 | + | |
428 | 430 | | |
429 | 431 | | |
430 | 432 | | |
| 433 | + | |
431 | 434 | | |
432 | 435 | | |
433 | 436 | | |
| |||
458 | 461 | | |
459 | 462 | | |
460 | 463 | | |
| 464 | + | |
461 | 465 | | |
462 | 466 | | |
463 | 467 | | |
| |||
469 | 473 | | |
470 | 474 | | |
471 | 475 | | |
| 476 | + | |
472 | 477 | | |
473 | 478 | | |
474 | 479 | | |
| 480 | + | |
475 | 481 | | |
476 | 482 | | |
477 | 483 | | |
| |||
481 | 487 | | |
482 | 488 | | |
483 | 489 | | |
| 490 | + | |
484 | 491 | | |
485 | 492 | | |
486 | 493 | | |
| |||
492 | 499 | | |
493 | 500 | | |
494 | 501 | | |
| 502 | + | |
495 | 503 | | |
496 | 504 | | |
497 | 505 | | |
| 506 | + | |
498 | 507 | | |
499 | 508 | | |
500 | 509 | | |
| |||
510 | 519 | | |
511 | 520 | | |
512 | 521 | | |
| 522 | + | |
513 | 523 | | |
514 | 524 | | |
515 | 525 | | |
| |||
0 commit comments