issue of block device write buffer flush | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] | |
Hi, all
I have write a block driver for sd card. And I find block level only
need transfer 1, 2, or 8 blocks every times. You know, the time needed of sd
card transfer 800 blocks maybe only 5 times of 8 blocks. So I want to add a
buffer in my driver. When block level need transfer data of adjacent blocks
in sd card, the data merged and reserved in the buffer, and transferd once
later. Now, read buffer is ok, but the write buffer have a problem. When
should I flush the data in write buffer to sd card? Can I use work queue to
accomplish the function?
Any clues are welcomed.
Thanks.
Best Regards!
-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ: http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette: http://www.arm.linux.org.uk/mailinglists/etiquette.php
[Site Home] [IETF Annouce] [Security] [Bugtraq] [Linux] [Linux ARM Kernel] [Linux MIPS] [ECOS] [Tools] [DDR & Rambus] [Monitors]