diff options
author | Jens Axboe <axboe@kernel.dk> | 2023-03-28 22:34:06 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2023-03-30 16:12:29 +0200 |
commit | da67ba07b4aa0a192e2957540eca15f8cb2e1ee7 (patch) | |
tree | c82c51444614524ee18632413ac2aa06d50ab5ef /drivers/infiniband/hw/qib | |
parent | IB/hfi1: check for user backed iterator, not specific iterator type (diff) | |
download | linux-da67ba07b4aa0a192e2957540eca15f8cb2e1ee7.tar.xz linux-da67ba07b4aa0a192e2957540eca15f8cb2e1ee7.zip |
IB/qib: 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.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/infiniband/hw/qib')
-rw-r--r-- | drivers/infiniband/hw/qib/qib_file_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_file_ops.c b/drivers/infiniband/hw/qib/qib_file_ops.c index 4cee39337866..815ea72ad473 100644 --- a/drivers/infiniband/hw/qib/qib_file_ops.c +++ b/drivers/infiniband/hw/qib/qib_file_ops.c @@ -2245,7 +2245,7 @@ static ssize_t qib_write_iter(struct kiocb *iocb, struct iov_iter *from) struct qib_ctxtdata *rcd = ctxt_fp(iocb->ki_filp); struct qib_user_sdma_queue *pq = fp->pq; - if (!iter_is_iovec(from) || !from->nr_segs || !pq) + if (!from->user_backed || !from->nr_segs || !pq) return -EINVAL; return qib_user_sdma_writev(rcd, pq, iter_iov(from), from->nr_segs); |