Commit cc9c884
block: call submit_bio_checks under q_usage_counter
Ensure all bios check the current values of the queue under freeze
protection, i.e. to make sure the zero capacity set by del_gendisk
is actually seen before dispatching to the driver.
Signed-off-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Tested-by: Yi Zhang <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>1 parent baa0ab2 commit cc9c884
1 file changed
+12
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
902 | | - | |
903 | | - | |
904 | | - | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
905 | 908 | | |
| 909 | + | |
906 | 910 | | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
907 | 914 | | |
908 | 915 | | |
909 | 916 | | |
| |||
941 | 948 | | |
942 | 949 | | |
943 | 950 | | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | 951 | | |
948 | 952 | | |
949 | 953 | | |
| |||
979 | 983 | | |
980 | 984 | | |
981 | 985 | | |
982 | | - | |
| 986 | + | |
983 | 987 | | |
984 | 988 | | |
985 | 989 | | |
986 | 990 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
994 | | - | |
995 | | - | |
996 | | - | |
997 | | - | |
998 | | - | |
| 991 | + | |
999 | 992 | | |
1000 | 993 | | |
1001 | 994 | | |
| |||
1013 | 1006 | | |
1014 | 1007 | | |
1015 | 1008 | | |
1016 | | - | |
1017 | | - | |
1018 | | - | |
1019 | 1009 | | |
1020 | 1010 | | |
1021 | 1011 | | |
| |||
0 commit comments