From: Bart Van Assche <bart.vanassche@gmail.com>
To: Damien Le Moal <damien.lemoal@wdc.com>,
fio@vger.kernel.org, Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH 2/2] zbd: Remove unused function and variable
Date: Wed, 26 Sep 2018 08:36:21 -0700 [thread overview]
Message-ID: <1537976181.35256.2.camel@gmail.com> (raw)
In-Reply-To: <20180926064226.2590-1-damien.lemoal@wdc.com>
On Wed, 2018-09-26 at 15:42 +0900, Damien Le Moal wrote:
> -/* Check whether the value of zbd_info.sectors_with_data is correct. */
> -static void check_swd(const struct thread_data *td, const struct fio_file *f)
> -{
> -#if 0
> - struct fio_zone_info *zb, *ze, *z;
> - uint64_t swd;
> -
> - zb = &f->zbd_info->zone_info[zbd_zone_idx(f, f->file_offset)];
> - ze = &f->zbd_info->zone_info[zbd_zone_idx(f, f->file_offset +
> - f->io_size)];
> - swd = 0;
> - for (z = zb; z < ze; z++) {
> - pthread_mutex_lock(&z->mutex);
> - swd += z->wp - z->start;
> - }
> - pthread_mutex_lock(&f->zbd_info->mutex);
> - assert(f->zbd_info->sectors_with_data == swd);
> - pthread_mutex_unlock(&f->zbd_info->mutex);
> - for (z = zb; z < ze; z++)
> - pthread_mutex_unlock(&z->mutex);
> -#endif
> -}
I'd like to keep this code. This code has been proven to be very valuable
while debugging to verify the code that updates f->zbd_info->sectors_with_data.
Bart.
prev parent reply other threads:[~2018-09-26 15:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-09-26 6:42 [PATCH 2/2] zbd: Remove unused function and variable Damien Le Moal
2018-09-26 15:36 ` Bart Van Assche [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1537976181.35256.2.camel@gmail.com \
--to=bart.vanassche@gmail.com \
--cc=axboe@kernel.dk \
--cc=damien.lemoal@wdc.com \
--cc=fio@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.