[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201003.172647.2111926819782777286.davem@davemloft.net>
Date: Sat, 03 Oct 2020 17:26:47 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: manjunath.b.patil@...cle.com
Cc: santosh.shilimkar@...cle.com, netdev@...r.kernel.org,
linux-rdma@...r.kernel.org, aruna.ramakrishna@...cle.com,
rama.nichanamatlu@...cle.com
Subject: Re: [PATCH 1/1] net/rds: suppress page allocation failure error in
recv buffer refill
From: Manjunath Patil <manjunath.b.patil@...cle.com>
Date: Fri, 2 Oct 2020 13:05:45 -0700
> RDS/IB tries to refill the recv buffer in softirq context using
> GFP_NOWAIT flag. However alloc failure is handled by queueing a work to
> refill the recv buffer with GFP_KERNEL flag. This means failure to
> allocate with GFP_NOWAIT isn't fatal. Do not print the PAF warnings if
> softirq context fails to refill the recv buffer, instead print rate
> limited warnings.
>
> Signed-off-by: Manjunath Patil <manjunath.b.patil@...cle.com>
> Reviewed-by: Aruna Ramakrishna <aruna.ramakrishna@...cle.com>
Honestly I don't think the subsystem should print any warning at all.
Either it's a softirq failure, and that's ok because you will push
the allocation to GFP_KERNEL via a work job. Or it's a GFP_KERNEL
failure in non-softirq context and the kernel will print a warning
and a stack backtrace from the memory allocator.
Therefore, please remove all of the warnings in the rds code.
Thanks.
Powered by blists - more mailing lists