Skip to content

Staging: hv: Driver cleanup

K. Y. Srinivasan lkml virtualization 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest40 patches 29 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/40Staging: hv: storvsc: Do not aquire an unnecessary reference on stor_devicedrivers/staging/hv/storvsc.c+1 -42 replies
2/40Staging: hv: storvsc: Rename must_get_stor_device()drivers/staging/hv/storvsc.c+3 -30 replies
3/40Staging: 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
4/40Staging: hv: storvsc: Cleanup alloc_stor_device()drivers/staging/hv/storvsc.c+1 -10 replies
5/40Staging: hv: storvsc: Introduce state to manage the lifecycle of stor devicedrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c+3 -20 replies
6/40Staging: hv: vmbus: Introduce a lock to protect the ext field in hv_devicedrivers/staging/hv/hyperv.h drivers/staging/hv/vmbus_drv.c+4 -00 replies
7/40Staging: hv: storvsc: Use the newly introduced lock in accessing ext fielddrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c+12 -00 replies
8/40Staging: hv: storvsc: Prevent outgoing traffic when stor dev is destroyeddrivers/staging/hv/hyperv_storage.h+2 -10 replies
9/40Staging: hv: storvsc: Get rid of release_stor_device() by inlining the codedrivers/staging/hv/storvsc.c+7 -160 replies
10/40Staging: hv: storvsc: Get rid of final_release_stor_device() by inlining codedrivers/staging/hv/storvsc.c+5 -200 replies
11/40Staging: hv: storvsc: Leverage the spinlock to manage ref_cntdrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c+9 -90 replies
12/40Staging: hv: storvsc: Further cleanup reference counting of stor_devicedrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c+14 -110 replies
13/40Staging: hv: netvsc: Introduce code to properly manage outstanding sendsdrivers/staging/hv/hyperv_net.h drivers/staging/hv/netvsc.c+15 -10 replies
14/40Staging: hv: netvsc: Inline the code for free_net_device()drivers/staging/hv/netvsc.c+2 -100 replies
15/40Staging: hv: netvsc: Cleanup alloc_net_device()drivers/staging/hv/netvsc.c+1 -10 replies
16/40Staging: hv: netvsc: Introduce state to manage the lifecycle of net devicedrivers/staging/hv/hyperv_net.h drivers/staging/hv/netvsc.c+3 -00 replies
17/40Staging: hv: netvsc: Use the newly introduced lock in accessing ext fielddrivers/staging/hv/netvsc.c+22 -20 replies
18/40Staging: hv: netvsc: Prevent outgoing traffic when netvsc dev is destroyeddrivers/staging/hv/netvsc.c+2 -10 replies
19/40Staging: hv: netvsc: Get rid of release_outbound_net_device() by inlining the codedrivers/staging/hv/netvsc.c+7 -280 replies
20/40Staging: hv: netvsc: Get rid of release_inbound_net_device() by inlining the codedrivers/staging/hv/netvsc.c+10 -340 replies
21/40Staging: hv: netvsc: Leverage the spinlock to manage ref_cntdrivers/staging/hv/hyperv_net.h drivers/staging/hv/netvsc.c+9 -90 replies
22/40Staging: hv: netvsc: Further cleanup reference counting of netvsc_devicedrivers/staging/hv/netvsc.c+16 -90 replies
23/40Staging: hv: storvsc: Introduce code to manage IDE devices using storvsc HBAdrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc_drv.c+61 -23 replies
24/40Staging: hv: storvsc: On I/O get the correct IDE devicedrivers/staging/hv/storvsc_drv.c+10 -05 replies
25/40Staging: hv: storvsc: Add state to manage the lifecycle of emulated HBAdrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc.c drivers/staging/hv/storvsc_drv.c+10 -11 reply
26/40Staging: hv: storvsc: Handle probing IDE devicesdrivers/staging/hv/storvsc_drv.c+20 -30 replies
27/40Staging: hv: storvsc: Handle IDE devices correctly in storvsc_remove()drivers/staging/hv/storvsc_drv.c+9 -00 replies
28/40Staging: hv: storvsc: Handle IDE devices using the storvsc driverdrivers/staging/hv/Kconfig drivers/staging/hv/Makefile drivers/staging/hv/storvsc_drv.c+1 -90 replies
29/40Staging: hv: storvsc: Optimize bounce buffer handling for the "write" casedrivers/staging/hv/storvsc_drv.c+6 -50 replies
30/40Staging: hv: storvsc: Optimize the bounce buffer handling in the "read" casedrivers/staging/hv/storvsc_drv.c+4 -60 replies
31/40Staging: hv: storvsc: Get rid of blkvsc_drv.c as this code is not useddrivers/staging/hv/blkvsc_drv.c+0 -10240 replies
32/40Staging: hv: storvsc: Include storvsc.c in storvsc_drv.cdrivers/staging/hv/Makefile drivers/staging/hv/storvsc.c drivers/staging/hv/storvsc_drv.c+529 -5280 replies
33/40Staging: hv: storvsc: Cleanup storvsc_drv.c after adding the contents of storvsc.cdrivers/staging/hv/storvsc_drv.c+7 -980 replies
34/40Staging: hv: storvsc: Add the contents of hyperv_storage.h to storvsc_drv.cdrivers/staging/hv/hyperv_storage.h drivers/staging/hv/storvsc_drv.c+313 -3565 replies
35/40Staging: hv: storvsc: Make storvsc_dev_add() a static functiondrivers/staging/hv/storvsc_drv.c+1 -11 reply
36/40Staging: hv: storvsc: Make storvsc_dev_remove() a static functiondrivers/staging/hv/storvsc_drv.c+1 -10 replies
37/40Staging: hv: storvsc: Make storvsc_do_io() a static functiondrivers/staging/hv/storvsc_drv.c+1 -10 replies
38/40Staging: hv: storvsc: Fixup srb_status for INQUIRY and MODE_SENSEdrivers/staging/hv/storvsc_drv.c+12 -03 replies
39/40Staging: hv: storvsc: In case of scsi errors offline the devicedrivers/staging/hv/storvsc_drv.c+9 -10 replies
40/40Staging: hv: storvsc: No need to copy from bounce buffer in case of failuredrivers/staging/hv/storvsc_drv.c+1 -90 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 00/40] Staging: hv: Driver cleanup

Further cleanup of the hv drivers:

1) Cleanup the reference counting mess for both stor and net devices.

2) Handle all block devices using the storvsc driver.

3) Accomodate some host side scsi emulation bugs.

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

Regads,

K. Y