Commit 98f7743
block: only read from sqe on initial invocation of blkdev_uring_cmd()
commit 212ec34 upstream.
This passthrough helper currently only supports discards. Part of that
command is the start and length, which is read from the SQE. It does
so on every invocation, where it really should just make it stable
on the first invocation. This avoids needing to copy the SQE upfront,
as we only really need those two 8b values stored in our per-req
payload.
Cc: stable@vger.kernel.org # 6.17+
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 55fd8ad commit 98f7743
1 file changed
Lines changed: 15 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
864 | 864 | | |
865 | 865 | | |
866 | 866 | | |
| 867 | + | |
| 868 | + | |
867 | 869 | | |
868 | 870 | | |
869 | 871 | | |
| |||
953 | 955 | | |
954 | 956 | | |
955 | 957 | | |
956 | | - | |
957 | 958 | | |
958 | | - | |
959 | 959 | | |
960 | | - | |
961 | | - | |
962 | | - | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
963 | 971 | | |
964 | 972 | | |
965 | 973 | | |
966 | 974 | | |
967 | | - | |
968 | | - | |
969 | | - | |
970 | 975 | | |
971 | 976 | | |
972 | | - | |
| 977 | + | |
| 978 | + | |
973 | 979 | | |
974 | 980 | | |
975 | 981 | | |
0 commit comments