aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/fast_commit.c
diff options
context:
space:
mode:
authorJason Gunthorpe <[email protected]>2021-08-06 01:19:09 +0000
committerAlex Williamson <[email protected]>2021-08-11 15:50:11 +0000
commitdd574d9b728d583e30289244be139f82d0de3fb3 (patch)
tree73fda17fb869b9130a9b2d09fddd37a3425ea7c8 /fs/ext4/fast_commit.c
parentvfio/ap,ccw: Fix open/close when multiple device FDs are open (diff)
downloadkernel-dd574d9b728d583e30289244be139f82d0de3fb3.tar.gz
kernel-dd574d9b728d583e30289244be139f82d0de3fb3.zip
vfio/gvt: Fix open/close when multiple device FDs are open
The user can open multiple device FDs if it likes, however the open function calls vfio_register_notifier() on device global state. Calling vfio_register_notifier() twice will trigger a WARN_ON from notifier_chain_register() and the first close will wrongly delete the notifier and more. Since these really want the new open/close_device() semantics just change the function over. Reviewed-by: Zhenyu Wang <[email protected]> Reviewed-by: Cornelia Huck <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'fs/ext4/fast_commit.c')
0 files changed, 0 insertions, 0 deletions