Signed-off-by: Peng Tao <tao.peng@xxxxxxx> --- fs/nfs/blocklayout/blocklayout.c | 15 +++++++++++++++ 1 files changed, 15 insertions(+), 0 deletions(-) diff --git a/fs/nfs/blocklayout/blocklayout.c b/fs/nfs/blocklayout/blocklayout.c index 7ae8a60..53cb450 100644 --- a/fs/nfs/blocklayout/blocklayout.c +++ b/fs/nfs/blocklayout/blocklayout.c @@ -996,6 +996,19 @@ bl_clear_layoutdriver(struct nfs_server *server) return 0; } +static bool bl_dio_begin(struct inode *inode, const struct iovec *iov, + unsigned long nr_segs, loff_t pos, + struct blk_plug *plug) +{ + blk_start_plug(plug); + return true; +} + +void bl_dio_end(struct blk_plug *plug) +{ + blk_finish_plug(plug); +} + static const struct nfs_pageio_ops bl_pg_read_ops = { .pg_init = pnfs_generic_pg_init_read, .pg_test = pnfs_generic_pg_test, @@ -1013,6 +1026,8 @@ static struct pnfs_layoutdriver_type blocklayout_type = { .name = "LAYOUT_BLOCK_VOLUME", .read_pagelist = bl_read_pagelist, .write_pagelist = bl_write_pagelist, + .dio_begin = bl_dio_begin, + .dio_end = bl_dio_end, .alloc_layout_hdr = bl_alloc_layout_hdr, .free_layout_hdr = bl_free_layout_hdr, .alloc_lseg = bl_alloc_lseg, -- 1.7.1.262.g5ef3d -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html