Skip to content

Commit

Permalink
feat(be/liburing): turn on batching by default
Browse files Browse the repository at this point in the history
Instead of requiring XNVME_QUEUE_BATCHING = 1 to enable batching, now we
require XNVME_QUEUE_BATCHING_OFF = 1 to disable batching

Signed-off-by: Karl Bonde Torp <k.torp@samsung.com>
  • Loading branch information
karlowich committed Oct 17, 2023
1 parent 1dadf46 commit e1a4ab5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/xnvme_be_linux_async_liburing.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,8 +122,9 @@ xnvme_be_linux_liburing_init(struct xnvme_queue *q, int opts)
return -err;
}

if (getenv("XNVME_QUEUE_BATCHING")) {
queue->batching = 1;
queue->batching = 1;
if (getenv("XNVME_QUEUE_BATCHING_OFF")) {
queue->batching = 0;
}

//
Expand Down

0 comments on commit e1a4ab5

Please sign in to comment.