On 12/13/2016 10:18 AM, Ritesh Harjani wrote:
On 12/9/2016 1:43 AM, Jens Axboe wrote:
+ if (!list_empty_careful(&hctx->dispatch)) {
+ spin_lock(&hctx->lock);
+ if (!list_empty(&hctx->dispatch))
list_splice_init already checks for list_empty. So this may be
redundant. Please check.
Hello Ritesh,
I think the list_empty() check is on purpose and is intended as a
performance optimization.
Bart.
--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html