Skip to content

Staging: hv: Driver cleanup

K. Y. Srinivasan linux-ide lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest46 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/46Staging: hv: storvsc: Inline free_stor_device()drivers/staging/hv/storvsc.c+2 -60 replies
2/46Staging: hv: storvsc: Do not aquire an unnecessary reference on stor_devicedrivers/staging/hv/storvsc.c+1 -40 replies
3/46Staging: hv: storvsc: Rename must_get_stor_device()drivers/staging/hv/storvsc.c+3 -30 replies
4/46Staging: hv: storvsc: Rename get_stor_device()drivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c drivers/staging/hv/storvsc_drv.c+7 -60 replies
5/46Staging: hv: storvsc: Cleanup alloc_stor_device()drivers/staging/hv/storvsc.c+1 -10 replies
6/46Staging: hv: storvsc: Introduce state to manage the lifecycle of stor devicedrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c+8 -20 replies
7/46Staging: hv: storvsc: Prevent outgoing traffic when stor dev is being destroyeddrivers/staging/hv/hyperv_storage.h+2 -10 replies
8/46Staging: hv: storvsc: Get rid of release_stor_device() by inlining the codedrivers/staging/hv/storvsc.c+2 -170 replies
9/46Staging: hv: storvsc: Get rid of final_release_stor_device() by inlining codedrivers/staging/hv/storvsc.c+6 -170 replies
10/46Staging: hv: storvsc: Get rid of the reference counting in struct storvsc_devicedrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c drivers/staging/hv/storvsc_drv.c+23 -290 replies
11/46Staging: hv: netvsc: Inline the code for free_net_device()drivers/staging/hv/netvsc.c+2 -100 replies
12/46Staging: hv: netvsc: Cleanup alloc_net_device()drivers/staging/hv/netvsc.c+1 -10 replies
13/46Staging: hv: netvsc: Introduce state to manage the lifecycle of net devicedrivers/staging/hv/hyperv_net.h drivers/staging/hv/netvsc.c+7 -00 replies
14/46Staging: hv: netvsc: Prevent outgoing traffic when netvsc dev is destroyeddrivers/staging/hv/netvsc.c+2 -10 replies
15/46Staging: hv: netvsc: Get rid of release_outbound_net_device() by inlining the codedrivers/staging/hv/netvsc.c+14 -240 replies
16/46Staging: hv: netvsc: Get rid of release_inbound_net_device() by inlining the codedrivers/staging/hv/netvsc.c+2 -220 replies
17/46Staging: hv: netvsc: Get rid of the refcnt field in struct netvsc_devicedrivers/staging/hv/hyperv_net.h drivers/staging/hv/netvsc.c+20 -430 replies
18/46Staging: hv: storvsc: Add code to handle IDE devices using the storvsc driverdrivers/staging/hv/storvsc_drv.c+52 -81 reply
19/46Staging: hv: storvsc: Handle IDE devices using the storvsc driverdrivers/staging/hv/Kconfig drivers/staging/hv/Makefile drivers/staging/hv/storvsc_drv.c+8 -220 replies
20/46Staging: hv: blkvsc: Get rid of blkvsc_drv.c as this code is not useddrivers/staging/hv/blkvsc_drv.c+0 -10140 replies
21/46Staging: hv: storvsc: Optimize bounce buffer handling for the "write" casedrivers/staging/hv/storvsc_drv.c+6 -60 replies
22/46Staging: hv: storvsc: Optimize the bounce buffer handling in the "read" casedrivers/staging/hv/storvsc_drv.c+4 -60 replies
23/46Staging: hv: storvsc: Include storvsc.c in storvsc_drv.cdrivers/staging/hv/Makefile drivers/staging/hv/storvsc.c drivers/staging/hv/storvsc_drv.c+530 -5290 replies
24/46Staging: hv: storvsc: Cleanup storvsc_drv.c after adding the contents of storvsc.cdrivers/staging/hv/storvsc_drv.c+27 -1200 replies
25/46Staging: hv: storvsc: Add the contents of hyperv_storage.h to storvsc_drv.cdrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc_drv.c+276 -3230 replies
26/46Staging: hv: storvsc: Cleanup storvsc_drv.c after adding the contents of hyperv_storage.hdrivers/staging/hv/storvsc_drv.c+26 -360 replies
27/46Staging: hv: storvsc: Fixup srb and scsi status for INQUIRY and MODE_SENSEdrivers/staging/hv/storvsc_drv.c+17 -00 replies
28/46Staging: hv: storvsc: Fix a typodrivers/staging/hv/storvsc_drv.c+3 -30 replies
29/46Staging: hv: storvsc: In case of scsi errors offline the devicedrivers/staging/hv/storvsc_drv.c+9 -10 replies
30/46Staging: hv: storvsc: No need to copy from bounce buffer in case of a failuredrivers/staging/hv/storvsc_drv.c+2 -100 replies
31/46Staging: hv: util: Forcefully shutdown when shutdown is requesteddrivers/staging/hv/hv_util.c+1 -10 replies
32/46Staging: hv: util: Adjust guest time in a process contextdrivers/staging/hv/hv_util.c+30 -30 replies
33/46Staging: hv: vmbus: Check before invoking the channel callbackdrivers/staging/hv/connection.c+1 -10 replies
34/46Staging: hv: vmbus: Properly deal with de-registering channel callbackdrivers/staging/hv/channel.c drivers/staging/hv/connection.c drivers/staging/hv/netvsc.c +1 more+8 -210 replies
35/46Staging: hv: Fix a bug in vmbus_match()drivers/staging/hv/vmbus_drv.c+1 -11 reply
36/46Staging: hv: vmbus: Get rid of vmbus_on_isr() by inlining the codedrivers/staging/hv/vmbus_drv.c+12 -290 replies
37/46Staging: hv: vmbus: Check for events before messagesdrivers/staging/hv/vmbus_drv.c+9 -94 replies
38/46Staging: hv: vmbus: Do not enable auto eoidrivers/staging/hv/hv.c+1 -10 replies
39/46Staging: hv: vmbus: Fixup indentation in vmbus_acpi_add()drivers/staging/hv/vmbus_drv.c+2 -30 replies
40/46Staging: hv: vmbus: Get rid of some dated/redundant commentsdrivers/staging/hv/vmbus_drv.c+1 -100 replies
41/46Staging: hv: vmbus: Fix a bug in error handling in vmbus_bus_init()drivers/staging/hv/vmbus_drv.c+10 -115 replies
42/46Staging: hv: vmbus: Get rid of an unnecessary check in vmbus_connect()drivers/staging/hv/connection.c+0 -40 replies
43/46Staging: hv: vmbus: Fix a checkpatch warning in ring_buffer.cdrivers/staging/hv/ring_buffer.c+2 -10 replies
44/46Staging: hv: vmbus: Fix checkpatch warnings in connection.cdrivers/staging/hv/connection.c+7 -66 replies
45/46Staging: hv: mousevsc: Fix checkpatch errors and warningsdrivers/staging/hv/hv_mouse.c+8 -70 replies
46/46Staging: hv: Update the TODO filedrivers/staging/hv/TODO+20 -42 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0000/0046] Staging: hv: Driver cleanup

Further cleanup of the hv drivers.

1) Cleanup reference counting.

2) Handle all block devices using the storvsc driver. I have modified the implementation here based on Christoph's feedback on my earlier implementation.

3) Fix bugs.

4) Accomodate some host side scsi emulation bugs.

5) In case of scsi errors off-line the device.

This patch-set further reduces the size of Hyper-V drivers - the code is about 10% smaller. This reduction is mainly because we have eliminated the blkvsc driver.

Regards,

K. Y