Re: [RFC PATCH 0/4] Support vranges on files

2013-04-09 Thread Minchan Kim
On Tue, Apr 09, 2013 at 03:36:20PM -0700, John Stultz wrote: > On 04/08/2013 10:07 PM, Minchan Kim wrote: > >On Mon, Apr 08, 2013 at 08:27:50PM -0700, John Stultz wrote: > >>marked volatile, it should remain volatile until someone who has the > >>file open marks it as non-volatile. The only time

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-09 Thread John Stultz
On 04/08/2013 10:07 PM, Minchan Kim wrote: On Mon, Apr 08, 2013 at 08:27:50PM -0700, John Stultz wrote: marked volatile, it should remain volatile until someone who has the file open marks it as non-volatile. The only time we clear the volatility is when the file is closed by all users. Yes.

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-09 Thread John Stultz
On 04/08/2013 10:07 PM, Minchan Kim wrote: On Mon, Apr 08, 2013 at 08:27:50PM -0700, John Stultz wrote: marked volatile, it should remain volatile until someone who has the file open marks it as non-volatile. The only time we clear the volatility is when the file is closed by all users. Yes.

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-09 Thread Minchan Kim
On Tue, Apr 09, 2013 at 03:36:20PM -0700, John Stultz wrote: On 04/08/2013 10:07 PM, Minchan Kim wrote: On Mon, Apr 08, 2013 at 08:27:50PM -0700, John Stultz wrote: marked volatile, it should remain volatile until someone who has the file open marks it as non-volatile. The only time we clear

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread Minchan Kim
On Mon, Apr 08, 2013 at 08:27:50PM -0700, John Stultz wrote: > On 04/08/2013 07:18 PM, Minchan Kim wrote: > >On Mon, Apr 08, 2013 at 05:36:42PM -0700, John Stultz wrote: > >>On 04/07/2013 05:46 PM, Minchan Kim wrote: > >>>Hello John, > >>> > >>>As you know, userland people wanted to handle vrange

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread John Stultz
On 04/08/2013 07:18 PM, Minchan Kim wrote: On Mon, Apr 08, 2013 at 05:36:42PM -0700, John Stultz wrote: On 04/07/2013 05:46 PM, Minchan Kim wrote: Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread Minchan Kim
On Mon, Apr 08, 2013 at 05:36:42PM -0700, John Stultz wrote: > On 04/07/2013 05:46 PM, Minchan Kim wrote: > >Hello John, > > > >As you know, userland people wanted to handle vrange with mmaped > >pointer rather than fd-based and see the SIGBUS so I thought more > >about semantic of vrange and want

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread John Stultz
On 04/07/2013 05:46 PM, Minchan Kim wrote: Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more about semantic of vrange and want to make it very clear and easy. So I suggest below semantic(Of course, it's

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread John Stultz
On 04/07/2013 05:46 PM, Minchan Kim wrote: Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more about semantic of vrange and want to make it very clear and easy. So I suggest below semantic(Of course, it's

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread Minchan Kim
On Mon, Apr 08, 2013 at 05:36:42PM -0700, John Stultz wrote: On 04/07/2013 05:46 PM, Minchan Kim wrote: Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more about semantic of vrange and want to make it

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread John Stultz
On 04/08/2013 07:18 PM, Minchan Kim wrote: On Mon, Apr 08, 2013 at 05:36:42PM -0700, John Stultz wrote: On 04/07/2013 05:46 PM, Minchan Kim wrote: Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-08 Thread Minchan Kim
On Mon, Apr 08, 2013 at 08:27:50PM -0700, John Stultz wrote: On 04/08/2013 07:18 PM, Minchan Kim wrote: On Mon, Apr 08, 2013 at 05:36:42PM -0700, John Stultz wrote: On 04/07/2013 05:46 PM, Minchan Kim wrote: Hello John, As you know, userland people wanted to handle vrange with mmaped

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-07 Thread Minchan Kim
Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more about semantic of vrange and want to make it very clear and easy. So I suggest below semantic(Of course, it's not rock solid).

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-07 Thread Minchan Kim
Hello John, As you know, userland people wanted to handle vrange with mmaped pointer rather than fd-based and see the SIGBUS so I thought more about semantic of vrange and want to make it very clear and easy. So I suggest below semantic(Of course, it's not rock solid).

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-05 Thread Minchan Kim
Hi John, On Thu, Apr 04, 2013 at 10:37:52AM -0700, John Stultz wrote: > On 04/03/2013 11:55 PM, Minchan Kim wrote: > >On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: > >>Next we introduce a parallel fvrange() syscall for creating > >>volatile ranges directly against files. > >Okay.

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-05 Thread Minchan Kim
Hi John, On Thu, Apr 04, 2013 at 10:37:52AM -0700, John Stultz wrote: On 04/03/2013 11:55 PM, Minchan Kim wrote: On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: Next we introduce a parallel fvrange() syscall for creating volatile ranges directly against files. Okay. It seems you

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-04 Thread John Stultz
On 04/03/2013 11:55 PM, Minchan Kim wrote: On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: Next we introduce a parallel fvrange() syscall for creating volatile ranges directly against files. Okay. It seems you want to replace ashmem interface with fvrange. I dobut we have to eat a

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-04 Thread Minchan Kim
Hey John, First of all, I should confess I just glanced your code and poped several questions. If I miss something, please slap me. On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: > This patchset is against Minchan's vrange work here: > https://lkml.org/lkml/2013/3/12/105 > >

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-04 Thread Minchan Kim
Hey John, First of all, I should confess I just glanced your code and poped several questions. If I miss something, please slap me. On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: This patchset is against Minchan's vrange work here: https://lkml.org/lkml/2013/3/12/105

Re: [RFC PATCH 0/4] Support vranges on files

2013-04-04 Thread John Stultz
On 04/03/2013 11:55 PM, Minchan Kim wrote: On Wed, Apr 03, 2013 at 04:52:19PM -0700, John Stultz wrote: Next we introduce a parallel fvrange() syscall for creating volatile ranges directly against files. Okay. It seems you want to replace ashmem interface with fvrange. I dobut we have to eat a

[RFC PATCH 0/4] Support vranges on files

2013-04-03 Thread John Stultz
This patchset is against Minchan's vrange work here: https://lkml.org/lkml/2013/3/12/105 Extending it to support volatile ranges on files. In effect providing the same functionality of my earlier file based volatile range patches on-top of Minchan's anonymous volatile range work.

[RFC PATCH 0/4] Support vranges on files

2013-04-03 Thread John Stultz
This patchset is against Minchan's vrange work here: https://lkml.org/lkml/2013/3/12/105 Extending it to support volatile ranges on files. In effect providing the same functionality of my earlier file based volatile range patches on-top of Minchan's anonymous volatile range work.