mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 02:49:32 +03:00
Add defensive assertion to vdev_queue_aggregate()
a6ccb36b94
had been intended to include
this to silence Coverity reports, but this one was missed by mistake.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Closes #14043
This commit is contained in:
parent
d692e6c36e
commit
411d327c67
@ -725,6 +725,7 @@ vdev_queue_aggregate(vdev_queue_t *vq, zio_t *zio)
|
|||||||
* after our span is mandatory.
|
* after our span is mandatory.
|
||||||
*/
|
*/
|
||||||
dio = AVL_NEXT(t, last);
|
dio = AVL_NEXT(t, last);
|
||||||
|
ASSERT3P(dio, !=, NULL);
|
||||||
dio->io_flags &= ~ZIO_FLAG_OPTIONAL;
|
dio->io_flags &= ~ZIO_FLAG_OPTIONAL;
|
||||||
} else {
|
} else {
|
||||||
/* do not include the optional i/o */
|
/* do not include the optional i/o */
|
||||||
|
Loading…
Reference in New Issue
Block a user