Skip to content

Commit a6f0b08

Browse files
committed
RDMA/core: Remove ucontext->closing
Nothing reads this any more, and the reason for its existence has passed due to the deferred fput() scheme. Fixes: 8ea1f98 ("drivers/IB,usnic: reduce scope of mmap_sem") Link: https://lore.kernel.org/r/0-v1-df64ff042436+42-uctx_closing_jgg@nvidia.com Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent 220aee3 commit a6f0b08

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

drivers/infiniband/core/rdma_core.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,6 @@ void uverbs_destroy_ufile_hw(struct ib_uverbs_file *ufile,
889889
if (!ufile->ucontext)
890890
goto done;
891891

892-
ufile->ucontext->closing = true;
893892
ufile->ucontext->cleanup_retryable = true;
894893
while (!list_empty(&ufile->uobjects))
895894
if (__uverbs_cleanup_ufile(ufile, reason)) {

include/rdma/ib_verbs.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1477,12 +1477,6 @@ struct ib_rdmacg_object {
14771477
struct ib_ucontext {
14781478
struct ib_device *device;
14791479
struct ib_uverbs_file *ufile;
1480-
/*
1481-
* 'closing' can be read by the driver only during a destroy callback,
1482-
* it is set when we are closing the file descriptor and indicates
1483-
* that mm_sem may be locked.
1484-
*/
1485-
bool closing;
14861480

14871481
bool cleanup_retryable;
14881482

0 commit comments

Comments
 (0)