On 2/8/19 6:34 PM, Jens Axboe wrote:
From: Christoph Hellwig <[email protected]>

Store the request queue the last bio was submitted to in the iocb
private data in addition to the cookie so that we find the right block
device.  Also refactor the common direct I/O bio submission code into a
nice little helper.

Signed-off-by: Christoph Hellwig <[email protected]>

Modified to use bio_set_polled().

Signed-off-by: Jens Axboe <[email protected]>
---
  fs/gfs2/file.c        |  2 ++
  fs/iomap.c            | 43 ++++++++++++++++++++++++++++---------------
  fs/xfs/xfs_file.c     |  1 +
  include/linux/iomap.h |  1 +
  4 files changed, 32 insertions(+), 15 deletions(-)

Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes


Reply via email to