[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v11 02/10] block/raw: add persistent reservation in/out drive
From: |
Keith Busch |
Subject: |
Re: [PATCH v11 02/10] block/raw: add persistent reservation in/out driver |
Date: |
Mon, 9 Sep 2024 14:18:45 -0600 |
On Mon, Sep 09, 2024 at 07:34:45PM +0800, Changqi Lu wrote:
> +static int coroutine_fn GRAPH_RDLOCK
> +raw_co_pr_register(BlockDriverState *bs, uint64_t old_key,
> + uint64_t new_key, BlockPrType type,
> + bool ptpl, bool ignore_key)
> +{
> + return bdrv_co_pr_register(bs->file->bs, old_key, new_key,
> + type, ptpl, ignore_key);
> +}
The nvme parts look fine, but could you help me understand how this all
works? I was looking for something utilizing ioctl's, like
IOC_PR_REGISTER for this one, chained through the file-posix block
driver. Is this only supposed to work with iscsi?
- [PATCH v11 00/10] Support persistent reservation operations, Changqi Lu, 2024/09/09
- [PATCH v11 01/10] block: add persistent reservation in/out api, Changqi Lu, 2024/09/09
- [PATCH v11 02/10] block/raw: add persistent reservation in/out driver, Changqi Lu, 2024/09/09
- Re: [PATCH v11 02/10] block/raw: add persistent reservation in/out driver,
Keith Busch <=
- [PATCH v11 03/10] scsi/constant: add persistent reservation in/out protocol constants, Changqi Lu, 2024/09/09
- [PATCH v11 04/10] scsi/util: add helper functions for persistent reservation types conversion, Changqi Lu, 2024/09/09
- [PATCH v11 05/10] hw/scsi: add persistent reservation in/out api for scsi device, Changqi Lu, 2024/09/09
- [PATCH v11 06/10] block/nvme: add reservation command protocol constants, Changqi Lu, 2024/09/09
- [PATCH v11 08/10] hw/nvme: enable ONCS and rescap function, Changqi Lu, 2024/09/09
- [PATCH v11 07/10] hw/nvme: add helper functions for converting reservation types, Changqi Lu, 2024/09/09
- [PATCH v11 09/10] hw/nvme: add reservation protocal command, Changqi Lu, 2024/09/09
- [PATCH v11 10/10] block/iscsi: add persistent reservation in/out driver, Changqi Lu, 2024/09/09