Skip to content

Commit

Permalink
NTB: Make the transport list in order of discovery
Browse files Browse the repository at this point in the history
The list should be added from the bottom and not the top in order to
ensure the transport is provided in the same order to clients as ntb
devices are discovered.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
  • Loading branch information
Dave Jiang authored and Jon Mason committed Sep 7, 2015
1 parent 0a5d19d commit 3151000
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/ntb/ntb_transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ static LIST_HEAD(ntb_transport_list);

static int ntb_bus_init(struct ntb_transport_ctx *nt)
{
list_add(&nt->entry, &ntb_transport_list);
list_add_tail(&nt->entry, &ntb_transport_list);
return 0;
}

Expand Down

0 comments on commit 3151000

Please sign in to comment.