ibmvnic: Remove inflight list
The inflight list used to track memory that is allocated for crq that are inflight is not needed. The one piece of the inflight list that does need to be cleaned at module exit is the error buffer list which is already attached to the adapter struct. This patch removes the inflight list and moves checking the error buffer list to ibmvnic_remove. Signed-off-by: Nathan Fontenot <nfont@linux.vnet.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
ed7ecbf700
commit
661a262276
@@ -913,11 +913,6 @@ struct ibmvnic_error_buff {
|
||||
__be32 error_id;
|
||||
};
|
||||
|
||||
struct ibmvnic_inflight_cmd {
|
||||
union ibmvnic_crq crq;
|
||||
struct list_head list;
|
||||
};
|
||||
|
||||
struct ibmvnic_adapter {
|
||||
struct vio_dev *vdev;
|
||||
struct net_device *netdev;
|
||||
@@ -978,10 +973,6 @@ struct ibmvnic_adapter {
|
||||
|
||||
struct completion fw_done;
|
||||
|
||||
/* in-flight commands that allocate and/or map memory*/
|
||||
struct list_head inflight;
|
||||
spinlock_t inflight_lock;
|
||||
|
||||
/* partner capabilities */
|
||||
u64 min_tx_queues;
|
||||
u64 min_rx_queues;
|
||||
|
Reference in New Issue
Block a user