Commit 755a184
ublk: don't access ublk_queue in ublk_unmap_io()
For ublk servers with many ublk queues, accessing the ublk_queue in
ublk_unmap_io() is a frequent cache miss. Pass to __ublk_complete_rq()
whether the ublk server's data buffer needs to be copied to the request.
In the callers __ublk_fail_req() and ublk_ch_uring_cmd_local(), get the
flags from the ublk_device instead, as its flags have just been read.
In ublk_put_req_ref(), pass false since all the features that require
reference counting disable copying of the data buffer upon completion.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 97a02be commit 755a184
1 file changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
529 | 529 | | |
530 | 530 | | |
531 | 531 | | |
532 | | - | |
| 532 | + | |
| 533 | + | |
533 | 534 | | |
534 | 535 | | |
535 | 536 | | |
| |||
737 | 738 | | |
738 | 739 | | |
739 | 740 | | |
740 | | - | |
741 | | - | |
| 741 | + | |
| 742 | + | |
| 743 | + | |
| 744 | + | |
| 745 | + | |
742 | 746 | | |
743 | 747 | | |
744 | 748 | | |
| |||
1048 | 1052 | | |
1049 | 1053 | | |
1050 | 1054 | | |
1051 | | - | |
| 1055 | + | |
1052 | 1056 | | |
1053 | 1057 | | |
1054 | 1058 | | |
1055 | 1059 | | |
1056 | 1060 | | |
1057 | | - | |
| 1061 | + | |
1058 | 1062 | | |
1059 | 1063 | | |
1060 | 1064 | | |
| |||
1146 | 1150 | | |
1147 | 1151 | | |
1148 | 1152 | | |
1149 | | - | |
| 1153 | + | |
| 1154 | + | |
1150 | 1155 | | |
1151 | | - | |
1152 | 1156 | | |
1153 | 1157 | | |
1154 | 1158 | | |
| |||
1172 | 1176 | | |
1173 | 1177 | | |
1174 | 1178 | | |
1175 | | - | |
| 1179 | + | |
1176 | 1180 | | |
1177 | 1181 | | |
1178 | 1182 | | |
| |||
1749 | 1753 | | |
1750 | 1754 | | |
1751 | 1755 | | |
1752 | | - | |
| 1756 | + | |
1753 | 1757 | | |
1754 | 1758 | | |
1755 | 1759 | | |
| |||
2394 | 2398 | | |
2395 | 2399 | | |
2396 | 2400 | | |
2397 | | - | |
| 2401 | + | |
2398 | 2402 | | |
2399 | 2403 | | |
2400 | 2404 | | |
| |||
0 commit comments