public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] block: add bio based read-write helper
@ 2020-04-06 23:24 Chaitanya Kulkarni
  2020-04-06 23:24 ` [PATCH 1/2] block: add bio based rw helper for data buffer Chaitanya Kulkarni
  2020-04-06 23:24 ` [PATCH 2/2] xfs: use block layer helper for rw Chaitanya Kulkarni
  0 siblings, 2 replies; 10+ messages in thread
From: Chaitanya Kulkarni @ 2020-04-06 23:24 UTC (permalink / raw)
  To: linux-block, linux-xfs; +Cc: hch, danil.kipnis, jinpu.wang, Chaitanya Kulkarni

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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-04-08 23:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-06 23:24 [PATCH 0/2] block: add bio based read-write helper Chaitanya Kulkarni
2020-04-06 23:24 ` [PATCH 1/2] block: add bio based rw helper for data buffer Chaitanya Kulkarni
2020-04-07  0:28   ` Damien Le Moal
2020-04-07 20:01     ` Chaitanya Kulkarni
2020-04-07 10:09   ` Danil Kipnis
2020-04-06 23:24 ` [PATCH 2/2] xfs: use block layer helper for rw Chaitanya Kulkarni
2020-04-07  0:32   ` Damien Le Moal
2020-04-07 20:06     ` Chaitanya Kulkarni
2020-04-07 23:27       ` Dave Chinner
2020-04-08 23:22         ` Chaitanya Kulkarni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox