lkml.org 
[lkml]   [2013]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjecthow to get coalesced I/O in block layer
From
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


\
 
 \ /
  Last update: 2013-05-23 20:41    [W:0.034 / U:0.696 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site