Commit 9558cf1
ext4: add nowait mode for ext4_getblk()
Current ext4_getblk() might sleep if some resources are not valid or
could be race with a concurrent extents modifing procedure. So we
cannot call ext4_getblk() and ext4_map_blocks() to get map blocks in
the atomic context in some fast path (e.g. the upcoming procedure of
getting symlink external block in the RCU context), even if the map
extents have already been check and cached.
Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Link: https://lore.kernel.org/r/20220424140936.1898920-2-yi.zhang@huawei.com1 parent e4e58e5 commit 9558cf1
2 files changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
673 | 673 | | |
674 | 674 | | |
675 | 675 | | |
| 676 | + | |
| 677 | + | |
676 | 678 | | |
677 | 679 | | |
678 | 680 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
545 | 545 | | |
546 | 546 | | |
547 | 547 | | |
| 548 | + | |
| 549 | + | |
| 550 | + | |
548 | 551 | | |
549 | 552 | | |
550 | 553 | | |
551 | 554 | | |
552 | 555 | | |
553 | 556 | | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
554 | 563 | | |
555 | 564 | | |
556 | 565 | | |
| |||
837 | 846 | | |
838 | 847 | | |
839 | 848 | | |
| 849 | + | |
840 | 850 | | |
841 | 851 | | |
842 | 852 | | |
843 | 853 | | |
| 854 | + | |
844 | 855 | | |
845 | 856 | | |
846 | 857 | | |
| |||
851 | 862 | | |
852 | 863 | | |
853 | 864 | | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
854 | 868 | | |
855 | 869 | | |
856 | 870 | | |
| |||
0 commit comments