]> asedeno.scripts.mit.edu Git - linux.git/commit
mm/hmm: Remove racy protection against double-unregistration
authorJason Gunthorpe <jgg@mellanox.com>
Thu, 23 May 2019 14:31:45 +0000 (11:31 -0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 24 Jun 2019 20:37:10 +0000 (17:37 -0300)
commit187229c2ddd12a5bb5cd6bb3fbef9ecbc6eead92
treec0f05c9c81d53d3f6d79bc464ce35273f01a52a8
parent8a1a0cd0b770a0f40a49db923479879fa7135aae
mm/hmm: Remove racy protection against double-unregistration

No other register/unregister kernel API attempts to provide this kind of
protection as it is inherently racy, so just drop it.

Callers should provide their own protection, and it appears nouveau
already does.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Reviewed-by: Jérôme Glisse <jglisse@redhat.com>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Ralph Campbell <rcampbell@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Tested-by: Philip Yang <Philip.Yang@amd.com>
mm/hmm.c