Staging: hv: Cleanup-storage-drivers-phase-II
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest20 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/20 | Staging: hv: Move the definition of struct storvsc_request_extensiondrivers/ | +12 | 0 replies | |
| 2/20 | Staging: hv: Embed struct storvsc_request_extension into hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +2 | 0 replies | |
| 3/20 | Staging: hv: Get rid of request_ext_size from struct storvsc_driver_objectdrivers/ drivers/ drivers/ | +4 | 0 replies | |
| 4/20 | Staging: hv: Add a function to map a hv_driver pointer to storvsc driverdrivers/ drivers/ drivers/ | +8 | 0 replies | |
| 5/20 | Staging: hv: Use struct completion in struct storvsc_request_extensiondrivers/ drivers/ drivers/ | +17 | 0 replies | |
| 6/20 | Staging: hv: Get rid of the type field from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +16 | 0 replies | |
| 7/20 | Staging: hv: Get rid of the host field from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +2 | 0 replies | |
| 8/20 | Staging: hv: Get rid of the bus field from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +4 | 0 replies | |
| 9/20 | Staging: hv: Get rid of the target_id from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +4 | 0 replies | |
| 10/20 | Staging: hv: Get rid of lun_id from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +4 | 0 replies | |
| 11/20 | Staging: hv: Get rid of the cdb_len from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +6 | 0 replies | |
| 12/20 | Staging: hv: Get rid of cdb from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +6 | 0 replies | |
| 13/20 | Staging: hv: Get rid of sense_buffer_size from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +1 | 0 replies | |
| 14/20 | Staging: hv: Move sense_buffer fielddrivers/ drivers/ drivers/ +1 more | +5 | 0 replies | |
| 15/20 | Staging: hv: Move the context field from struct hv_storvsc_requestdrivers/ drivers/ drivers/ | +6 | 0 replies | |
| 16/20 | Staging: hv: Move on_io_completion() from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +4 | 0 replies | |
| 17/20 | Staging: hv: Get rid of the status field from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +25 | 0 replies | |
| 18/20 | Staging: hv: Move the data_buffer field from struct hv_storvsc_requestdrivers/ drivers/ drivers/ +1 more | +39 | 0 replies | |
| 19/20 | Staging: hv: Rename struct storvsc_request_extensiondrivers/ drivers/ drivers/ +1 more | +69 | 0 replies | |
| 20/20 | Staging: hv: Get rid of synch primitive in struct blkvsc_requestdrivers/ | +15 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/20] Staging: hv: Cleanup-storage-drivers-phase-II
This patch-set restructures and cleans up struct hv_storvsc_request. In the current code, two data structures: struct hv_storvsc_request and struct storvsc_request_extension together are used to carry the I/O state and there are many issues with this current architecture:
1) The memory for extension data structure
is allocatted just after the data buffer field in struct hv_storvsc_request resulting in comments such as this in struct blkvsc_request (blkvsc_drv.c):
/*
* !!!DO NOT ADD ANYTHING BELOW HERE!!! Otherwise, memory can overlap,
* because - The extension buffer falls right here and is pointed to by
* request.Extension;
* Which sounds like a horrible idea, who designed this? */
2) State is unnecessarily replicated in both struct hv_storvsc_request and the struct vstor_packet that is embedded in
struct storvsc_request_extension.
This patch-set addresses the above issues by geting rid of replicated state and consolidating all necessary state into a single data structure. We also deal with a range of other cleanups in this patch-set:
1) Use completion primitives to wait for completion.
2) Get rid of the synch primitive in struct blkvsc_request
3) Get rid of the need for struct hv_device to be the first element of struct host_device_context.
Regards,
K. Y