Files
os-brick/releasenotes/notes/nvme-flush-f31ab337224e5d3d.yaml
Gorka Eguileor 85dbd0f5d7 NVMe-oF: Flush on disconnect
The current NVMe-oF connector code in os-brick doesn't flush on
disconnect, as it just calls

  nvme disconnect -n <conn_nqn>

Which doesn't flush on the `nvme` code or the kernel code.

This patch adds the normal block device ioctl flush call:

    blockdev --flushbufs /dev/nvme0n1

The patch also adds and extends disconnect unit tests that were removed
when we added the new NVMe connector code (were not removed when we
added old code back).

Closes-Bug: #1903032
Change-Id: Ie6c8bdf1f3a629206da019405aee11c802a6a9bb
2021-05-19 12:00:17 +02:00

7 lines
156 B
YAML

---
fixes:
- |
NVMe-oF connector `bug #1903032
<https://bugs.launchpad.net/os-brick/+bug/1903032>`_: Fixed not flushing
device on disconnect.