Hi,
It's strange dm-devel mailing list can't be joined right now since no
CAPTCHA shows up on portal website
https://www.redhat.com/mailman/listinfo/dm-devel.
Does anyone has any idea how to join dm-devel@redhat.com now?
Thanks,
Changwei
--
dm-devel mailing list
dm-devel@redhat.com
> On Fri, Oct 20, 2017 at 10:37:38AM +0300, Elena Reshetova wrote:
> > } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) {
> > r = upgrade_mode(dd, mode, t->md);
> > if (r)
> > return r;
> > + refcount_inc(>count);
> > }
>
>
> +/*
> + * The clflushopt instruction is very slow on Broadwell, so we use
> non-temporal
> + * stores instead.
> + */
> +#ifdef CONFIG_X86_64
> +#define NT_STORE(dest, src) asm ("movnti %1, %0" : "=m"(dest) : "r"(src))
> +#define FLUSH_RANGE(dax, ptr, size) do { } while (0)
> +#define
Please run this past the swait authors. It is supposed to be a simple
and self-contained API so I'd expect this patch to be seen critical.
You might be better off to just use the normal complex waitqueues if
you want to micro-optimize like this.
On Wed, Nov 22, 2017 at 09:35:36PM -0500, Mikulas
Dne 20.10.2017 v 09:37 Elena Reshetova napsal(a):
atomic_t variables are currently used to implement reference
counters with the following properties:
- counter is initialized to 1 using atomic_set()
- a resource is freed upon counter reaching zero
- once counter reaches zero, its further
On Fri, Oct 20, 2017 at 10:37:38AM +0300, Elena Reshetova wrote:
> } else if (dd->dm_dev->mode != (mode | dd->dm_dev->mode)) {
> r = upgrade_mode(dd, mode, t->md);
> if (r)
> return r;
> + refcount_inc(>count);
> }
Missing
On Thu, Nov 23, 2017 at 12:29 AM, Christoph Hellwig wrote:
>> +/*
>> + * The clflushopt instruction is very slow on Broadwell, so we use
>> non-temporal
>> + * stores instead.
>> + */
>> +#ifdef CONFIG_X86_64
>> +#define NT_STORE(dest, src) asm ("movnti %1, %0" : "=m"(dest)
On Thu, 2017-11-23 at 10:20 +0800, Guan Junxiong wrote:
> Hi Martin,
>
> Thanks for your clarification. I agree with you now in this thread.
Thank you. I'd be grateful if you could give these patches a test in
your environment, I believe you have better testing equipment for this
stuff than I
On Thu, 23 Nov 2017, Dan Williams wrote:
> On Thu, Nov 23, 2017 at 12:29 AM, Christoph Hellwig
> wrote:
> >> +/*
> >> + * The clflushopt instruction is very slow on Broadwell, so we use
> >> non-temporal
> >> + * stores instead.
> >> + */
> >> +#ifdef CONFIG_X86_64
> >>
On Thu, 23 Nov 2017, Christoph Hellwig wrote:
> Please run this past the swait authors. It is supposed to be a simple
> and self-contained API so I'd expect this patch to be seen critical.
I already sent it to Peter Zijlstra and didn't get a response yet.
> You might be better off to just
The rw-semaphore is acquired for read only on two places, none of them is
performance-critical. So, we can replace it with a mutex.
Signed-off-by: Mikulas Patocka
---
drivers/md/dm-snap.c | 82 +--
1 file changed, 41
When we use bio_clone_bioset() to split off the front part of a bio
and chain the two together and submit the remainder to
generic_make_request(), it is important that the newly allocated
bio is used as the head to be processed immediately, and the original
bio gets "bio_advance()"d and sent to
12 matches
Mail list logo