On 10/19/20 10:42 AM, Hui Su wrote:
> @@ -633,23 +633,21 @@ static struct elevator_type
> *elevator_get_default(struct request_queue *q)
> */
> static struct elevator_type *elevator_get_by_features(struct request_queue
> *q)
> {
> - struct elevator_type *e, *found = NULL;
> + struct
On 10/19/20 10:42 AM, Hui Su wrote:
> 1.reduce the critical section in elevator_get().
> 2.reduce the critical section in elevator_get_by_features().
> 3.remove the found variable.
>
> the elv_list_lock is used to protect the elv_list,
> and the operations of elevator_type does not need
> to be
1.reduce the critical section in elevator_get().
2.reduce the critical section in elevator_get_by_features().
3.remove the found variable.
the elv_list_lock is used to protect the elv_list,
and the operations of elevator_type does not need
to be protected.
Signed-off-by: Hui Su
---
3 matches
Mail list logo