search for: readahead_get_size

Displaying 6 results from an estimated 6 matches for "readahead_get_size".

2019 Apr 01
1
[PATCH nbdkit] Add readahead filter.
A suggested readahead filter. I've only lightly tested this, but it seems to work fine with qemu-img convert. The commit needs proper tests. Rich.
2019 Apr 01
1
[PATCH nbdkit v2] Add readahead filter.
Simpler, and including tests. Rich.
2019 Apr 24
0
[nbdkit PATCH 4/4] filters: Check for mutex failures
...= bucket_run (bucket, bits, &ts); + } if (bits > 0) nanosleep (&ts, NULL); diff --git a/filters/readahead/readahead.c b/filters/readahead/readahead.c index f46b6b0..dc27bae 100644 --- a/filters/readahead/readahead.c +++ b/filters/readahead/readahead.c @@ -103,9 +103,8 @@ readahead_get_size (struct nbdkit_next_ops *next_ops, void *nxdata, if (r == -1) return -1; - pthread_mutex_lock (&lock); + ACQUIRE_LOCK_FOR_CURRENT_SCOPE (&lock); size = r; - pthread_mutex_unlock (&lock); return r; } diff --git a/filters/stats/stats.c b/filters/stats/stats.c index 96d...
2019 Aug 30
1
[nbdkit PATCH v2] filters: Stronger version match requirements
..., static struct nbdkit_filter filter = { .name = "readahead", .longname = "nbdkit readahead filter", - .version = PACKAGE_VERSION, .unload = readahead_unload, .prepare = readahead_prepare, .get_size = readahead_get_size, diff --git a/filters/stats/stats.c b/filters/stats/stats.c index d8ff02bc..98282e26 100644 --- a/filters/stats/stats.c +++ b/filters/stats/stats.c @@ -290,7 +290,6 @@ stats_cache (struct nbdkit_next_ops *next_ops, void *nxdata, static struct nbdkit_filter filter = { .name = "...
2019 Apr 24
7
[nbdkit PATCH 0/4] More mutex sanity checking
I do have a question about whether patch 2 is right, or whether I've exposed a bigger problem in the truncate (and possibly other) filter, but the rest seem fairly straightforward. Eric Blake (4): server: Check for pthread lock failures truncate: Factor out reading real_size under mutex plugins: Check for mutex failures filters: Check for mutex failures filters/cache/cache.c
2019 May 16
27
[nbdkit PATCH v2 00/24] implement NBD_CMD_CACHE
Since v1: - rework .can_cache to be tri-state, with default of no advertisement (ripple effect through other patches) - add a lot more patches in order to round out filter support And in the meantime, Rich pushed NBD_CMD_CACHE support into libnbd, so in theory we now have a way to test cache commands through the entire stack. Eric Blake (24): server: Internal hooks for implementing