Repository navigation
Commit ceeb373
block: Simplify report zones execution
All kernel users of blkdev_report_zones() as well as applications use
through ioctl(BLKZONEREPORT) expect to potentially get less zone
descriptors than requested. As such, the use of the internal report
zones command execution loop implemented by blk_report_zones() is
not necessary and can even be harmful to performance by causing the
execution of inefficient small zones report command to service the
reminder of a requested zone array.
This patch removes blk_report_zones(), simplifying the code. Also
remove a now incorrect comment in dm_blk_report_zones().
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Javier Gonzalez <javier@javigon.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent c98c3d0 commit ceeb373
2 files changed
Lines changed: 5 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | 122 | | |
148 | 123 | | |
149 | 124 | | |
| |||
164 | 139 | | |
165 | 140 | | |
166 | 141 | | |
| 142 | + | |
167 | 143 | | |
168 | 144 | | |
169 | 145 | | |
| |||
175 | 151 | | |
176 | 152 | | |
177 | 153 | | |
178 | | - | |
| 154 | + | |
179 | 155 | | |
180 | 156 | | |
181 | 157 | | |
| |||
185 | 161 | | |
186 | 162 | | |
187 | 163 | | |
188 | | - | |
189 | | - | |
| 164 | + | |
| 165 | + | |
190 | 166 | | |
191 | 167 | | |
192 | 168 | | |
| |||
561 | 537 | | |
562 | 538 | | |
563 | 539 | | |
564 | | - | |
| 540 | + | |
565 | 541 | | |
566 | 542 | | |
567 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | 476 | | |
483 | 477 | | |
484 | 478 | | |
| |||
0 commit comments