Re: [PATCH 2/3] mm/hugetlb: Setup hugetlb_falloc during fallocate hole punch

2015-10-19 Thread Mike Kravetz
On 10/19/2015 07:22 PM, Hugh Dickins wrote: > On Mon, 19 Oct 2015, Mike Kravetz wrote: >> On 10/19/2015 04:16 PM, Andrew Morton wrote: >>> On Fri, 16 Oct 2015 15:08:29 -0700 Mike Kravetz >>> wrote: >> mutex_lock(&inode->i_mutex); + + spin_lock(&inode->i_lock); >

Re: [PATCH 2/3] mm/hugetlb: Setup hugetlb_falloc during fallocate hole punch

2015-10-19 Thread Hugh Dickins
On Mon, 19 Oct 2015, Mike Kravetz wrote: > On 10/19/2015 04:16 PM, Andrew Morton wrote: > > On Fri, 16 Oct 2015 15:08:29 -0700 Mike Kravetz > > wrote: > > >>mutex_lock(&inode->i_mutex); > >> + > >> + spin_lock(&inode->i_lock); > >> + inode->i_private = &hugetlb_fall

Re: [PATCH 2/3] mm/hugetlb: Setup hugetlb_falloc during fallocate hole punch

2015-10-19 Thread Mike Kravetz
On 10/19/2015 04:16 PM, Andrew Morton wrote: > On Fri, 16 Oct 2015 15:08:29 -0700 Mike Kravetz > wrote: > >> When performing a fallocate hole punch, set up a hugetlb_falloc struct >> and make i_private point to it. i_private will point to this struct for >> the duration of the operation. At th

Re: [PATCH 2/3] mm/hugetlb: Setup hugetlb_falloc during fallocate hole punch

2015-10-19 Thread Andrew Morton
On Fri, 16 Oct 2015 15:08:29 -0700 Mike Kravetz wrote: > When performing a fallocate hole punch, set up a hugetlb_falloc struct > and make i_private point to it. i_private will point to this struct for > the duration of the operation. At the end of the operation, wake up > anyone who faulted on

[PATCH 2/3] mm/hugetlb: Setup hugetlb_falloc during fallocate hole punch

2015-10-16 Thread Mike Kravetz
When performing a fallocate hole punch, set up a hugetlb_falloc struct and make i_private point to it. i_private will point to this struct for the duration of the operation. At the end of the operation, wake up anyone who faulted on the hole and is on the waitq. Signed-off-by: Mike Kravetz ---