how to get coalesced I/O in block layer

From: Shri Agarwal
Date: Thu May 23 2013 - 13:55:17 EST


Hi,
i am trying to develop a blk driver,
i have registered my I/O handler function with
blk_init_queue(my function, lock)


my function get called for every Read and write as expected but all
I/O are page sized only.
so even if i send 32K I/O from application to my device, it gets me 8
4k(page size ) I/O.

so i have now two choice:
1. either i get I/O before got split
2. after elevator has aggregated them.



i have tried QUEUE_FLAG_PLUGGED to get large I/O but I/O are not
consistent(corruption happens after read and writing with
QUEUE_FLAG_PLUGGED).
any info would be highly appreciated.

thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/