diff options
author | Brian Behlendorf <[email protected]> | 2016-01-08 19:21:56 -0500 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2016-01-08 20:23:23 -0500 |
commit | e9e3d31d2c141af15518ce6578ef26480fe97878 (patch) | |
tree | b60b33c98e3ecf0ca2105ac828c90ff1b1d3dd06 /module | |
parent | fcff0f35bd522076bdda7491c88a91cc0aa531a3 (diff) |
Allow 16M send/recv blocks
Fix an off by one error introduced by fcff0f3 which triggers an
assertion when 16M blocks are used with send/recv. This fix was
intentionally not folder in to the Illumos commit so it can be
easily cherry-picked by upstream.
Signed-off-by: Brian Behlendorf <[email protected]>
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/bqueue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/module/zfs/bqueue.c b/module/zfs/bqueue.c index 1ddc697b5..89655cf53 100644 --- a/module/zfs/bqueue.c +++ b/module/zfs/bqueue.c @@ -69,7 +69,7 @@ void bqueue_enqueue(bqueue_t *q, void *data, uint64_t item_size) { ASSERT3U(item_size, >, 0); - ASSERT3U(item_size, <, q->bq_maxsize); + ASSERT3U(item_size, <=, q->bq_maxsize); mutex_enter(&q->bq_lock); obj2node(q, data)->bqn_size = item_size; while (q->bq_size + item_size > q->bq_maxsize) { |