[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v6 1/4] file-posix: add tracking of the zone write pointers
From: |
Stefan Hajnoczi |
Subject: |
Re: [PATCH v6 1/4] file-posix: add tracking of the zone write pointers |
Date: |
Thu, 16 Mar 2023 14:51:37 -0400 |
On Fri, Mar 10, 2023 at 06:31:03PM +0800, Sam Li wrote:
> @@ -2338,9 +2424,15 @@ static int coroutine_fn raw_co_prw(BlockDriverState
> *bs, uint64_t offset,
> {
> BDRVRawState *s = bs->opaque;
> RawPosixAIOData acb;
> + int ret;
>
> if (fd_open(bs) < 0)
> return -EIO;
> +#if defined(CONFIG_BLKZONED)
> + if (bs->bl.wps) {
> + qemu_co_mutex_lock(&bs->bl.wps->colock);
> + }
> +#endif
Is the lock only needed by QEMU_AIO_WRITE requests? If yes, can we skip
it for other request types to avoid serializing those requests?
signature.asc
Description: PGP signature
[PATCH v6 2/4] block: introduce zone append write for zoned devices, Sam Li, 2023/03/10
[PATCH v6 3/4] qemu-iotests: test zone append operation, Sam Li, 2023/03/10
[PATCH v6 4/4] block: add some trace events for zone append, Sam Li, 2023/03/10