OSDN Git Service

IB/core: Abort page fault handler silently during owning process exit
authorMoni Shoua <monis@mellanox.com>
Sun, 17 Feb 2019 14:08:24 +0000 (16:08 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 21 Feb 2019 23:32:45 +0000 (16:32 -0700)
commit4438ee3f130c9deeebaf39bb9108d02c0b57cc7f
tree6f50b9d5e8e248f261b143e4565e7a28e34f6751
parent81dd4c4be3a765351189c7572ac963711d2bb652
IB/core: Abort page fault handler silently during owning process exit

It is possible that during a page fault handling, the process that owns
the MR is terminating. The indication for it is failure to get the
task_struct or take reference on the mm_struct. In this case just abort
the page-fault handler with error but without a warning to the kernel log.

Signed-off-by: Moni Shoua <monis@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/umem_odp.c