diff options
author | Max Gurtovoy <[email protected]> | 2024-08-25 16:07:15 +0300 |
---|---|---|
committer | Michael S. Tsirkin <[email protected]> | 2024-09-25 07:07:43 -0400 |
commit | 4045b6429874e07f14b5b41e326d4e6f866f8bbf (patch) | |
tree | 51f38093ee3345d295e470c41196d8527358135f /drivers/fpga/fpga-bridge.c | |
parent | 561a16366ef57caad66d0dfe49275cd3f809c138 (diff) |
virtio_fs: introduce virtio_fs_put_locked helper
Introduce a new helper function virtio_fs_put_locked to encapsulate the
common pattern of releasing a virtio_fs reference while holding a lock.
The existing virtio_fs_put helper will be used to release a virtio_fs
reference while not holding a lock.
Also add an assertion in case the lock is not taken when it should.
Reviewed-by: Idan Zach <[email protected]>
Reviewed-by: Shai Malin <[email protected]>
Signed-off-by: Max Gurtovoy <[email protected]>
Message-Id: <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Reviewed-by: Stefan Hajnoczi <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions