Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: 8ea1f989aa07 ("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>

-7
-1
drivers/infiniband/core/rdma_core.c
··· 889 889 if (!ufile->ucontext) 890 890 goto done; 891 891 892 - ufile->ucontext->closing = true; 893 892 ufile->ucontext->cleanup_retryable = true; 894 893 while (!list_empty(&ufile->uobjects)) 895 894 if (__uverbs_cleanup_ufile(ufile, reason)) {
-6
include/rdma/ib_verbs.h
··· 1477 1477 struct ib_ucontext { 1478 1478 struct ib_device *device; 1479 1479 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; 1486 1480 1487 1481 bool cleanup_retryable; 1488 1482