Re: [PATCH] selftests: hugetlb_dio: Check for initial conditions to skip in the start

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 8 Nov 2024 19:13:04 +0500 Muhammad Usama Anjum <Usama.Anjum@xxxxxxxxxxxxx> wrote:

> On 11/8/24 3:49 PM, Donet Tom wrote:
> 
> > I think below changes are required.
> > 
> > iff --git a/tools/testing/selftests/mm/hugetlb_dio.c b/tools/testing/selftests/mm/hugetlb_dio.c
> > index 60001c142ce9..4b52106b8124 100644
> > --- a/tools/testing/selftests/mm/hugetlb_dio.c
> > +++ b/tools/testing/selftests/mm/hugetlb_dio.c
> > @@ -44,6 +44,9 @@ void run_dio_using_hugetlb(unsigned int start_off, unsigned int end_off)
> >         if (fd < 0)
> >                 ksft_exit_fail_perror("Error opening file\n");
> >  
> > +       /* Get the free huge pages before allocation */
> > +       free_hpage_b = get_free_hugepages();
> > +
> >         /* Allocate a hugetlb page */
> > 
> >         orig_buffer = mmap(NULL, h_pagesize, mmap_prot, mmap_flags, -1, 0);
> > 
> >         if (orig_buffer == MAP_FAILED) {
> Please can you send a fixup patch as you have working test setup?
> Otherwise I'll take it up and try to test on working setup before
> posting the fixup patch. Please let me know.

I've removed this patch from mm-hotfixes-stable.





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux