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>
Thu, 30 Mar 2023 14:12:29 +0000 (08:12 -0600)
commit23ecdcd0c070e200f52b58e131af2b276b3d800e
treea8d08bf85ceb9479f42402f8fa856f20f8eb5598
parentde4f5fed3f231a8ff4790bf52975f847b95b85ea
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