aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2022-02-15 10:45:10 +0100
committerJens Axboe <[email protected]>2022-02-16 19:44:24 -0700
commit76792055c4c8b2472ca1ae48e0ddaf8497529f08 (patch)
treed46b30e52e66b4f27ccb9c06a9cedf3d83abf546 /include/linux/fpga/fpga-mgr.h
parent34841e6fb125aa3f0e33e4eaac9f5eb86b2bb34b (diff)
block: add a ->free_disk method
Add a method to notify the driver that the gendisk is about to be freed. This allows drivers to tie the lifetime of their private data to that of the gendisk and thus deal with device removal races without expensive synchronization and boilerplate code. A new flag is added so that ->free_disk is only called after a successful call to add_disk, which significantly simplifies the error handling path during probing. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions