Commit f6c80cf
block: add request polling helper
Provide a direct request polling will for drivers. The interface does
not require a bio, and can skip the overhead associated with polling
those. The biggest gain from skipping the relatively expensive xarray
lookup unnecessary when you already have the request.
With this, the simple rq/qc conversion functions have only one caller
each, so open code this and remove the helpers.
Signed-off-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20230612190343.2087040-2-kbusch@meta.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 3a08284 commit f6c80cf
2 files changed
Lines changed: 34 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
| 52 | + | |
| 53 | + | |
63 | 54 | | |
64 | 55 | | |
65 | 56 | | |
| |||
1248 | 1239 | | |
1249 | 1240 | | |
1250 | 1241 | | |
1251 | | - | |
| 1242 | + | |
1252 | 1243 | | |
1253 | 1244 | | |
1254 | 1245 | | |
| |||
1354 | 1345 | | |
1355 | 1346 | | |
1356 | 1347 | | |
1357 | | - | |
| 1348 | + | |
1358 | 1349 | | |
1359 | 1350 | | |
1360 | 1351 | | |
| |||
4749 | 4740 | | |
4750 | 4741 | | |
4751 | 4742 | | |
4752 | | - | |
4753 | | - | |
| 4743 | + | |
| 4744 | + | |
4754 | 4745 | | |
4755 | | - | |
4756 | 4746 | | |
4757 | 4747 | | |
4758 | 4748 | | |
| |||
4777 | 4767 | | |
4778 | 4768 | | |
4779 | 4769 | | |
| 4770 | + | |
| 4771 | + | |
| 4772 | + | |
| 4773 | + | |
| 4774 | + | |
| 4775 | + | |
| 4776 | + | |
| 4777 | + | |
| 4778 | + | |
| 4779 | + | |
| 4780 | + | |
| 4781 | + | |
| 4782 | + | |
| 4783 | + | |
| 4784 | + | |
| 4785 | + | |
| 4786 | + | |
| 4787 | + | |
| 4788 | + | |
| 4789 | + | |
| 4790 | + | |
| 4791 | + | |
| 4792 | + | |
| 4793 | + | |
| 4794 | + | |
| 4795 | + | |
4780 | 4796 | | |
4781 | 4797 | | |
4782 | 4798 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
| 718 | + | |
| 719 | + | |
718 | 720 | | |
719 | 721 | | |
720 | 722 | | |
| |||
0 commit comments