On Wed, Apr 13, 2022 at 04:48:05PM +0800, Ming Lei wrote: > If the bio is marked as POLLED after submission, Umm, a bio should never be marked POLLED after submission. > bio_poll() should be > called for reaping io since there isn't irq for completing the request, > so we can't call into blk_io_schedule() in case that bio_poll() returns > zero. > > Also for calling bio_poll(), current->plug has to be flushed out, > otherwise bio may not be issued to driver, and ->bi_cookie won't > be set. I think we just need to bypass the plug to start with for synchronous polled I/O. Do you have a reproducer? We'd also need to sort all this out for polled file system I/O as well.