Thread (62 messages) 62 messages, 5 authors, 2019-02-13

Re: [PATCH 03/19] block: add bio_set_polled() helper

From: Hannes Reinecke <hare@suse.de>
Date: 2019-02-09 09:24:12
Also in: linux-block

On 2/8/19 6:34 PM, Jens Axboe wrote:
For the upcoming async polled IO, we can't sleep allocating requests.
If we do, then we introduce a deadlock where the submitter already
has async polled IO in-flight, but can't wait for them to complete
since polled requests must be active found and reaped.

Utilize the helper in the blockdev DIRECT_IO code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
---
  fs/block_dev.c      |  4 ++--
  include/linux/bio.h | 14 ++++++++++++++
  2 files changed, 16 insertions(+), 2 deletions(-)
Reviewed-by: Hannes Reinecke <hare@suse.com>

Cheers,

Hannes


--
To unsubscribe, send a message with 'unsubscribe linux-aio' in
the body to majordomo@kvack.org.  For more info on Linux AIO,
see: http://www.kvack.org/aio/
Don't email: <a href=mailto:"aart@kvack.org">aart@kvack.org</a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help