#
e75bde30 |
|
10-Dec-2017 |
Sean Klein <seanmarionklein@gmail.com> |
[dev][block] Drastically simplify BLOCK_CORE protocol Observations: - Almost every block device driver implements the protocol functions (set_callbacks, get_info, read, write) using nearly identical code. - The only differences which exist in those functions are within the read/write functions, which may do additional boundary checking. However, this boundary checking is already accomplished by iotxn_queue, so it is redundant. Exploiting these Observations: - Relocate the iotxn allocating / enqueueing functionality into the generic block driver, so it can be shared by all block device drivers registered as BLOCK_CORE. - In doing so, there is no longer a need for registered callbacks. This simplifies block device drivers further. Change-Id: I795418489cebd3ecebcb2d1153f1cfd7dcc77d5c
|