iomap: ensure that async polled IO is marked REQ_NOWAIT
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Nov 2018 15:50:26 +0000 (08:50 -0700)
committerJens Axboe <axboe@kernel.dk>
Tue, 4 Dec 2018 16:43:14 +0000 (09:43 -0700)
commit9b50d2f169c0674f710f8cb033543eaed91bdda8
tree40df24af7e63e85d6fd0d696469f1c78d37ff9c1
parent94ec6840818f03bd9e78708fc247a1d0166a1d1d
iomap: ensure that async polled IO is marked REQ_NOWAIT

We can't wait for polled events to complete, as they may require active
polling from whoever submitted it. If that is the same task that is
submitting new IO, we could deadlock waiting for IO to complete that
this task is supposed to be completing itself.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/iomap.c