Whamcloud - gitweb
LU-4423 obdclass: use list_sort() to sort a list. 12/35512/4
authorNeilBrown <neilb@suse.com>
Mon, 15 Jul 2019 01:11:56 +0000 (21:11 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 24 Jul 2019 04:21:08 +0000 (04:21 +0000)
commit0b0671e8f939d17612829d3a2f8ad013be416945
tree30a5466d861673c1368825994fffb101aeb214d7
parent72a84970e6d2a2d4b3a35f2ee058511be2fda82e
LU-4423 obdclass: use list_sort() to sort a list.

Rather than a bespoke bubble-sort, use list_sort() to
sort this linked list.

As this would become a 1-line function that is only called once,
call list_sort() directly from the one call site.

Linux-commit: e714d3559e964d1547d20b54ad5fd6bbb3401f56

Signed-off-by: NeilBrown <neilb@suse.com>
Change-Id: Ied197a4fdba43d793c5ebbb9afc837a986609469
Reviewed-on: https://review.whamcloud.com/35512
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/obdclass/cl_io.c