IB/hfi1: check for user backed iterator, not specific iterator type
authorJens Axboe <axboe@kernel.dk>
Tue, 28 Mar 2023 20:32:38 +0000 (14:32 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Mar 2023 21:53:09 +0000 (15:53 -0600)
commitbd674374cd2fff8daa4f201aa306c89c89bacbaa
treee7bf914d100f636b14b0ebd541878aa3781bd524
parent67ce14118af2e06b2f82a5a6c62e52519597cb7d
IB/hfi1: check for user backed iterator, not specific iterator type

In preparation for switching single segment iterators to using ITER_UBUF,
swap the check for whether we are user backed or not. While at it, move
it outside the srcu locking area to clean up the code a bit.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/infiniband/hw/hfi1/file_ops.c