BLKZEROOUT ioctl and WriteZero opcode

אייל בן דוד bdeyal at gmail.com
Thu May 3 08:15:54 PDT 2018


Hi all,

There is an ioctl command BLKZEROOUT that accepts range (lba + number
of block to zero)

Suppose:
Block device is an nvme device (e.g. /dev/nvme0nX)
Device does support the WriteZeroes opcode.

If so, does the kernel make use of the WriteZeroes opcode in the
implementation of BLKZEROOUT ?
Same question for BLKDISCARD.

Thanks
Eyal.



More information about the Linux-nvme mailing list