Commit 69f4bda
nvme: also return I/O command effects from nvme_command_effects
[ Upstream commit 831ed60 ]
To be able to use the Commands Supported and Effects Log for allowing
unprivileged passtrough, it needs to be corretly reported for I/O
commands as well. Return the I/O command effects from
nvme_command_effects, and also add a default list of effects for the
NVM command set. For other command sets, the Commands Supported and
Effects log is required to be present already.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>1 parent a6a4b05 commit 69f4bda
1 file changed
+26
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| 1116 | + | |
| 1117 | + | |
| 1118 | + | |
| 1119 | + | |
| 1120 | + | |
| 1121 | + | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
1116 | 1128 | | |
1117 | 1129 | | |
1118 | 1130 | | |
1119 | 1131 | | |
1120 | 1132 | | |
1121 | 1133 | | |
1122 | 1134 | | |
| 1135 | + | |
| 1136 | + | |
1123 | 1137 | | |
1124 | 1138 | | |
1125 | | - | |
| 1139 | + | |
1126 | 1140 | | |
1127 | | - | |
1128 | | - | |
1129 | 1141 | | |
1130 | | - | |
1131 | | - | |
1132 | | - | |
| 1142 | + | |
| 1143 | + | |
| 1144 | + | |
| 1145 | + | |
| 1146 | + | |
| 1147 | + | |
| 1148 | + | |
| 1149 | + | |
| 1150 | + | |
| 1151 | + | |
| 1152 | + | |
1133 | 1153 | | |
1134 | 1154 | | |
1135 | 1155 | | |
| |||
0 commit comments