ntb_transport: Pick an unused queue
PATCH 1/1 ntb_transport: Pick an unused queue
From: Thomas VanSelus <[email protected]>
Fix typo causing ntb_transport_create_queue to select the first queue every time, instead of using the next free queue.
Signed-off-by Thomas VanSelus <[email protected]>
Signed-off-by Aaron Sierra <[email protected]>
--- drivers/ntb/ntb_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/ntb/ntb_transport.c +1 -1
@@ -1802,7 +1802,7 @@ ntb_transport_create_queue(void *data, struct device *client_dev, node =dev_to_node (&ndev->dev); - free_queue =ffs (nt->qp_bitmap); + free_queue =ffs (nt->qp_bitmap_free);if (!free_queue) goto err;
Signature · 1 line
2.7.4
From: Aaron Sierra
Quoted 7 lines
From: Thomas VanSelus <[email protected]>
Fix typo causing
ntb_transport_create_queueto select the first queue every time, instead of using the next free queue.Signed-off-by Thomas VanSelus <[email protected]>Signed-off-by Aaron Sierra <[email protected]>
Acked-by Allen Hubbe <[email protected]>
Quoted 17 lines
--- drivers/ntb/ntb_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ntb/ntb_transport.c +1
-1@@ -1802,7 +1802,7 @@ ntb_transport_create_queue(void *data, struct device *client_dev, node =dev_to_node (&ndev->dev); - free_queue =ffs (nt->qp_bitmap); + free_queue =ffs (nt->qp_bitmap_free);if (!free_queue) goto err;
Jon Mason
maintainerQuoted 10 lines · Allen Hubbe
From: Aaron Sierra
Quoted 7 lines
From: Thomas VanSelus <[email protected]>
Fix typo causing
ntb_transport_create_queueto select the first queue every time, instead of using the next free queue.Signed-off-by Thomas VanSelus <[email protected]>Signed-off-by Aaron Sierra <[email protected]>Acked-by Allen Hubbe <[email protected]>
Good catch! This has been in there from the beginning.
Add a
Fixes fce8a7bb5 ("PCI-Express Non-Transparent Bridge Support")
and applied to my ntb branch.
Thanks,
Jon
Quoted 19 lines
Quoted 18 lines
--- drivers/ntb/ntb_transport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/ntb/ntb_transport.c +1
-1@@ -1802,7 +1802,7 @@ ntb_transport_create_queue(void *data, struct device *client_dev, node =dev_to_node (&ndev->dev); - free_queue =ffs (nt->qp_bitmap); + free_queue =ffs (nt->qp_bitmap_free);if (!free_queue) goto err;