Commit 3373503
xfs: use bounce buffering direct I/O when the device requires stable pages
Fix direct I/O on devices that require stable pages by asking iomap
to bounce buffer. To support this, ioends are used for direct reads
in this case to provide a user context for copying data back from the
bounce buffer.
This fixes qemu when used on devices using T10 protection information
and probably other cases like iSCSI using data digests.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent c9d1148 commit 3373503
2 files changed
Lines changed: 44 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
| 106 | + | |
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
| |||
202 | 202 | | |
203 | 203 | | |
204 | 204 | | |
205 | | - | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
206 | 210 | | |
207 | 211 | | |
208 | 212 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
227 | 247 | | |
228 | 248 | | |
229 | 249 | | |
230 | 250 | | |
231 | 251 | | |
232 | 252 | | |
| 253 | + | |
| 254 | + | |
233 | 255 | | |
234 | 256 | | |
235 | 257 | | |
| |||
242 | 264 | | |
243 | 265 | | |
244 | 266 | | |
245 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
246 | 273 | | |
247 | 274 | | |
248 | 275 | | |
| |||
703 | 730 | | |
704 | 731 | | |
705 | 732 | | |
| 733 | + | |
| 734 | + | |
706 | 735 | | |
707 | 736 | | |
708 | 737 | | |
| |||
750 | 779 | | |
751 | 780 | | |
752 | 781 | | |
| 782 | + | |
753 | 783 | | |
754 | 784 | | |
755 | 785 | | |
| |||
777 | 807 | | |
778 | 808 | | |
779 | 809 | | |
780 | | - | |
781 | | - | |
| 810 | + | |
| 811 | + | |
| 812 | + | |
| 813 | + | |
782 | 814 | | |
783 | 815 | | |
784 | 816 | | |
| |||
867 | 899 | | |
868 | 900 | | |
869 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
870 | 905 | | |
871 | 906 | | |
872 | 907 | | |
| |||
0 commit comments