commit | 8ecd3fd959634df81d66af8b3a69c16202a014e8 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Wed Dec 22 19:55:20 2021 -0700 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Dec 22 19:55:20 2021 -0700 |
tree | 8465ea9ed93787613c46e87c588605a286840803 | |
parent | 7233a8753cb7a4a137cdc5e534bb31fb2a0d53fd [diff] |
Don't clear sqe->user_data as part of command prep Reasoning: 1) If the app doesn't set it, it should not be reading it. 2) I've gotten more than one report on someone setting user_data before calling io_uring_prep_cmdtype() and it's a bit confusing. I think we'll be fine not clearing this, and it may actually help some cases that end up being a bit confusing, particular for people new to the interface. Signed-off-by: Jens Axboe <axboe@kernel.dk>