[PATCH V1 01/10] arch/kmap: Remove BUG_ON()

Christoph Hellwig hch at infradead.org
Fri May 1 18:35:59 AEST 2020


On Thu, Apr 30, 2020 at 01:38:36PM -0700, ira.weiny at intel.com wrote:
> From: Ira Weiny <ira.weiny at intel.com>
> 
> Replace the use of BUG_ON(in_interrupt()) in the kmap() and kunmap()
> in favor of might_sleep().
> 
> Besides the benefits of might_sleep(), this normalizes the
> implementations such that they can be made generic in subsequent
> patches.
> 
> Reviewed-by: Dan Williams <dan.j.williams at intel.com>
> Signed-off-by: Ira Weiny <ira.weiny at intel.com>

Looks good,

Reviewed-by: Christoph Hellwig <hch at lst.de>


More information about the Linuxppc-dev mailing list