forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commite2ec512
dm: Call proper helper to determine dax support
DM was calling generic_fsdax_supported() to determine whether a devicereferenced in the DM table supports DAX. However this is a helper for "leaf" device drivers so thatthey don't have to duplicate common generic checks. High level codeshould call dax_supported() helper which that calls into appropriatehelper for the particular device. This problem manifested itself askernel messages:dm-3: error: dax access failed (-95)when lvm2-testsuite run in cases where a DM device was stacked on top ofanother DM device.Fixes:7bf7eac ("dax: Arrange for dax_supported check to span multiple devices")Cc: <stable@vger.kernel.org>Tested-by: Adrian Huang <ahuang12@lenovo.com>Signed-off-by: Jan Kara <jack@suse.cz>Acked-by: Mike Snitzer <snitzer@redhat.com>Reported-by: kernel test robot <lkp@intel.com>Link:https://lore.kernel.org/r/160061715195.13131.5503173247632041975.stgit@dwillia2-desk3.amr.corp.intel.comSigned-off-by: Dan Williams <dan.j.williams@intel.com>1 parent02186d8 commite2ec512
3 files changed
+31
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
325 | 325 | | |
326 | 326 | | |
327 | 327 | | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
328 | 331 | | |
329 | 332 | | |
330 | 333 | | |
331 | 334 | | |
332 | 335 | | |
| 336 | + | |
333 | 337 | | |
334 | 338 | | |
335 | 339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
860 | 860 | | |
861 | 861 | | |
862 | 862 | | |
863 | | - | |
| 863 | + | |
| 864 | + | |
864 | 865 | | |
865 | | - | |
866 | | - | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
867 | 871 | | |
868 | 872 | | |
869 | 873 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
157 | 159 | | |
158 | 160 | | |
159 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
160 | 169 | | |
161 | 170 | | |
162 | 171 | | |
| |||
189 | 198 | | |
190 | 199 | | |
191 | 200 | | |
| 201 | + | |
192 | 202 | | |
193 | 203 | | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
194 | 214 | | |
195 | 215 | | |
196 | 216 | | |
197 | 217 | | |
198 | | - | |
199 | | - | |
200 | 218 | | |
201 | 219 | | |
202 | 220 | | |
| |||
0 commit comments
Comments
(0)