iov_iter: move iter_ubuf check inside restore WARN
authorKeith Busch <kbusch@kernel.org>
Thu, 5 Jan 2023 19:07:33 +0000 (11:07 -0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 9 Jan 2023 03:59:17 +0000 (20:59 -0700)
commit4397a17c1dc53f436285f372432dd1aea44e7953
tree7da702820c2b600b1fe02662dd956d95d53034c1
parent1e23db450cff5f0410480137041181d1514bda2a
iov_iter: move iter_ubuf check inside restore WARN

io_uring is using iter_ubuf types for single vector requests. We expect
state restore may happen for this type now, and it is already handled
correctly, so suppress the warning.

Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Christoph Hellwig <hch@lst.de>
lib/iov_iter.c