[PATCH 0/2] block: add bio based read-write helper

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

With reference to the discussion [1] on the linux-block mailing list,
this patch series adds a helper to map the buffer to bio and provides
two variants for synchronous and asynchronous I/O submission.

Right now only XFS is the only user, once gets accepted block/rnbd [2]
code can re-use this helper and we can avoid code duplication. 

Please note that I've not tested the XFS patch yet, once I get some
feedback, I'll add a test for the same in the xfstests. It will be
great if XFS developers can provide some insight into testing log
related code which used this helper.

Regards,
Chaitanya

[1] Linux-Block Mailing list discussion on the same topic :-

https://www.spinics.net/lists/linux-block/msg51040.html
https://www.spinics.net/lists/linux-block/msg51462.html
https://www.spinics.net/lists/linux-block/msg51465.html
https://www.spinics.net/lists/linux-block/msg51480.html

Chaitanya Kulkarni (2):
  block: add bio based rw helper for data buffer
  xfs: use block layer helper for rw

 block/blk-lib.c        | 105 +++++++++++++++++++++++++++++++++++++++++
 fs/xfs/xfs_bio_io.c    |  47 +-----------------
 include/linux/blkdev.h |   7 +++
 3 files changed, 114 insertions(+), 45 deletions(-)

-- 
2.22.1




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux