Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Andrew Rybchenko
On 04/30/2018 02:31 PM, Burakov, Anatoly wrote: On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Maxime Coquelin
On 04/30/2018 01:31 PM, Burakov, Anatoly wrote: On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking par

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Burakov, Anatoly
On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts of a file, which is useful for single-file segme

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-30 Thread Burakov, Anatoly
On 28-Apr-18 10:38 AM, Andrew Rybchenko wrote: On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts of a file, which is useful for single-file segme

Re: [dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-28 Thread Andrew Rybchenko
On 04/25/2018 01:36 PM, Anatoly Burakov wrote: The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts of a file, which is useful for single-file segments mode, where locking the entire file isn't as

[dpdk-dev] [PATCH v3 2/2] mem: revert to using flock() and add per-segment lockfiles

2018-04-25 Thread Anatoly Burakov
The original implementation used flock() locks, but was later switched to using fcntl() locks for page locking, because fcntl() locks allow locking parts of a file, which is useful for single-file segments mode, where locking the entire file isn't as useful because we still need to grow and shrink