diff options
| author | 2025-11-08 15:17:45 -0700 | |
|---|---|---|
| committer | 2025-11-11 07:57:05 -0700 | |
| commit | 6b0a29933f688a284e8869da0f63a93acf893757 (patch) | |
| tree | af6c98fcd001c01aa160fca76c7a660059983c59 /rust/kernel/ssh:/git@git.zx2c4.com | |
| parent | block: add lockdep to queue_limits_commit_update() (diff) | |
ublk: remove unnecessary checks in ublk_check_and_get_req()
ub = iocb->ki_filp->private_data cannot be NULL, as it's set in
ublk_ch_open() before it returns succesfully. req->mq_hctx cannot be
NULL as any inflight ublk request must belong to some queue. And
req->mq_hctx->driver_data cannot be NULL as it's set to the ublk_queue
pointer in ublk_init_hctx(). So drop the unnecessary checks.
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
