Commit df326e7
Mike Snitzer
dm verity: allow optional args to alter primary args handling
The previous commit ("dm verity: Add optional "try_verify_in_tasklet"
feature") imposed that CRYPTO_ALG_ASYNC mask be used even if the
optional "try_verify_in_tasklet" feature was not specified. This was
because verity_parse_opt_args() was called after handling the primary
args (due to it having data dependencies on having first parsed all
primary args).
Enhance verity_ctr() so that simple optional args, that don't have a
data dependency on primary args parsing, can alter how the primary
args are handled. In practice this means verity_parse_opt_args() gets
called twice. First with the new 'only_modifier_opts' arg set to true,
then again with it set to false _after_ parsing all primary args.
This allows the v->use_tasklet flag to be properly set and then used
when verity_ctr() parses the primary args and then calls
crypto_alloc_ahash() with CRYPTO_ALG_ASYNC conditionally set.
Signed-off-by: Mike Snitzer <[email protected]>1 parent 5721d4e commit df326e7
1 file changed
+24
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1027 | 1027 | | |
1028 | 1028 | | |
1029 | 1029 | | |
1030 | | - | |
| 1030 | + | |
| 1031 | + | |
1031 | 1032 | | |
1032 | 1033 | | |
1033 | 1034 | | |
| |||
1050 | 1051 | | |
1051 | 1052 | | |
1052 | 1053 | | |
| 1054 | + | |
| 1055 | + | |
1053 | 1056 | | |
1054 | 1057 | | |
1055 | 1058 | | |
| |||
1058 | 1061 | | |
1059 | 1062 | | |
1060 | 1063 | | |
| 1064 | + | |
| 1065 | + | |
1061 | 1066 | | |
1062 | 1067 | | |
1063 | 1068 | | |
| |||
1066 | 1071 | | |
1067 | 1072 | | |
1068 | 1073 | | |
| 1074 | + | |
| 1075 | + | |
1069 | 1076 | | |
1070 | 1077 | | |
1071 | 1078 | | |
| |||
1076 | 1083 | | |
1077 | 1084 | | |
1078 | 1085 | | |
| 1086 | + | |
| 1087 | + | |
1079 | 1088 | | |
1080 | 1089 | | |
1081 | 1090 | | |
1082 | 1091 | | |
1083 | 1092 | | |
1084 | 1093 | | |
| 1094 | + | |
| 1095 | + | |
1085 | 1096 | | |
1086 | 1097 | | |
1087 | 1098 | | |
| |||
1148 | 1159 | | |
1149 | 1160 | | |
1150 | 1161 | | |
| 1162 | + | |
| 1163 | + | |
| 1164 | + | |
| 1165 | + | |
| 1166 | + | |
| 1167 | + | |
| 1168 | + | |
| 1169 | + | |
| 1170 | + | |
1151 | 1171 | | |
1152 | 1172 | | |
1153 | 1173 | | |
| |||
1219 | 1239 | | |
1220 | 1240 | | |
1221 | 1241 | | |
1222 | | - | |
1223 | | - | |
1224 | | - | |
1225 | | - | |
1226 | | - | |
| 1242 | + | |
| 1243 | + | |
1227 | 1244 | | |
1228 | 1245 | | |
1229 | 1246 | | |
| |||
1285 | 1302 | | |
1286 | 1303 | | |
1287 | 1304 | | |
1288 | | - | |
1289 | | - | |
| 1305 | + | |
1290 | 1306 | | |
1291 | 1307 | | |
1292 | 1308 | | |
| |||
0 commit comments