search for: nr_sorted

Displaying 2 results from an estimated 2 matches for "nr_sorted".

2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...r_t boundary; struct list_head *entry; int stop_flags; - if (q->last_merge == rq) - q->last_merge = NULL; + assert_spin_locked(&ctx->lock); + assert_spin_locked(&ctx->lock); - elv_rqhash_del(q, rq); + if (ctx->last_merge == rq) + ctx->last_merge = NULL; - q->nr_sorted--; + elv_rqhash_del(rq); + + ctx->nr_sorted--; boundary = q->end_sector; stop_flags = REQ_SOFTBARRIER | REQ_STARTED; list_for_each_prev(entry, &q->queue_head) { struct request *pos = list_entry_rq(entry); if ((rq->cmd_flags & REQ_DISCARD) != (pos->cmd_f...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...r_t boundary; struct list_head *entry; int stop_flags; - if (q->last_merge == rq) - q->last_merge = NULL; + assert_spin_locked(&ctx->lock); + assert_spin_locked(&ctx->lock); - elv_rqhash_del(q, rq); + if (ctx->last_merge == rq) + ctx->last_merge = NULL; - q->nr_sorted--; + elv_rqhash_del(rq); + + ctx->nr_sorted--; boundary = q->end_sector; stop_flags = REQ_SOFTBARRIER | REQ_STARTED; list_for_each_prev(entry, &q->queue_head) { struct request *pos = list_entry_rq(entry); if ((rq->cmd_flags & REQ_DISCARD) != (pos->cmd_f...