Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Steven Rostedt
On Tue, 6 May 2014 17:47:16 -0400 Dan Streetman wrote: > well the specific reason in swap's case is the need to use > same-priority entries in a round-robin basis, but I don't know if > plist_round_robin() is very clear. No, that's not very clear. > > Maybe plist_demote()? Although demote

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Dan Streetman
On Tue, May 6, 2014 at 4:39 PM, Steven Rostedt wrote: > On Tue, 6 May 2014 16:12:54 -0400 > Dan Streetman wrote: > >> On Mon, May 5, 2014 at 10:18 PM, Steven Rostedt wrote: >> > On Fri, 2 May 2014 15:02:29 -0400 >> > Dan Streetman wrote: >> > >> >> Add plist_rotate(), which moves the

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Steven Rostedt
On Tue, 6 May 2014 16:12:54 -0400 Dan Streetman wrote: > On Mon, May 5, 2014 at 10:18 PM, Steven Rostedt wrote: > > On Fri, 2 May 2014 15:02:29 -0400 > > Dan Streetman wrote: > > > >> Add plist_rotate(), which moves the specified plist_node after > >> all other same-priority plist_nodes in

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Dan Streetman
On Mon, May 5, 2014 at 10:18 PM, Steven Rostedt wrote: > On Fri, 2 May 2014 15:02:29 -0400 > Dan Streetman wrote: > >> Add plist_rotate(), which moves the specified plist_node after >> all other same-priority plist_nodes in the list. > > This is a little confusing? You mean it takes a

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Steven Rostedt
On Tue, 6 May 2014 17:47:16 -0400 Dan Streetman ddstr...@ieee.org wrote: well the specific reason in swap's case is the need to use same-priority entries in a round-robin basis, but I don't know if plist_round_robin() is very clear. No, that's not very clear. Maybe plist_demote()?

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Dan Streetman
On Mon, May 5, 2014 at 10:18 PM, Steven Rostedt rost...@goodmis.org wrote: On Fri, 2 May 2014 15:02:29 -0400 Dan Streetman ddstr...@ieee.org wrote: Add plist_rotate(), which moves the specified plist_node after all other same-priority plist_nodes in the list. This is a little confusing?

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Steven Rostedt
On Tue, 6 May 2014 16:12:54 -0400 Dan Streetman ddstr...@ieee.org wrote: On Mon, May 5, 2014 at 10:18 PM, Steven Rostedt rost...@goodmis.org wrote: On Fri, 2 May 2014 15:02:29 -0400 Dan Streetman ddstr...@ieee.org wrote: Add plist_rotate(), which moves the specified plist_node after

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-06 Thread Dan Streetman
On Tue, May 6, 2014 at 4:39 PM, Steven Rostedt rost...@goodmis.org wrote: On Tue, 6 May 2014 16:12:54 -0400 Dan Streetman ddstr...@ieee.org wrote: On Mon, May 5, 2014 at 10:18 PM, Steven Rostedt rost...@goodmis.org wrote: On Fri, 2 May 2014 15:02:29 -0400 Dan Streetman ddstr...@ieee.org

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-05 Thread Steven Rostedt
On Fri, 2 May 2014 15:02:29 -0400 Dan Streetman wrote: > Add plist_rotate(), which moves the specified plist_node after > all other same-priority plist_nodes in the list. This is a little confusing? You mean it takes a plist_node from a plist and simply moves it to the end of the list of all

Re: [PATCH 3/4] plist: add plist_rotate

2014-05-05 Thread Steven Rostedt
On Fri, 2 May 2014 15:02:29 -0400 Dan Streetman ddstr...@ieee.org wrote: Add plist_rotate(), which moves the specified plist_node after all other same-priority plist_nodes in the list. This is a little confusing? You mean it takes a plist_node from a plist and simply moves it to the end of

[PATCH 3/4] plist: add plist_rotate

2014-05-02 Thread Dan Streetman
Add plist_rotate(), which moves the specified plist_node after all other same-priority plist_nodes in the list. This is needed by swap, which has a plist of swap_info_structs and needs to use each same-priority swap_info_struct equally. Also add plist_test_rotate() test function, for use by

[PATCH 3/4] plist: add plist_rotate

2014-05-02 Thread Dan Streetman
Add plist_rotate(), which moves the specified plist_node after all other same-priority plist_nodes in the list. This is needed by swap, which has a plist of swap_info_structs and needs to use each same-priority swap_info_struct equally. Also add plist_test_rotate() test function, for use by