open-cas-linux/configure.d
Michal Mielewczyk cc7ac0f551 Close block devices in a synchronous manner
fput() doesn't wait for all references on the disk to be unclaimed but instead
it only schedules a worker that is supposed to cleanup resources once the device
is released.

During cache initialization we open device at least twice - to check its
properties and then to actually use it as cache. But since we use the async
fput() after the probe, the device might still be in use once we try to open it
for the second time (the second open returns -EBUSY).

Using synchronous __fput_sync() to close the device fixes the issue

__fput_sync() exists in the kernel API longer than bdev_file_open_by_path() and
the presence of the latter is the condition to use the synchronous put so it is
perfectly safe to get rid of fput() from the configure framework

Signed-off-by: Michal Mielewczyk <michal.mielewczyk@huawei.com>
2024-07-31 07:12:01 +02:00
..
1_add_disk.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_append_bio.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bd_first_part.conf configure: add missing include 2024-06-21 09:42:02 +02:00
1_bd_part_count.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_bdev_lookup.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bdev_nr_sectors.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_bdev_open_by_path.conf Add support for kernel v6.9 2024-07-08 14:16:14 +02:00
1_bdev_release.conf Close block devices in a synchronous manner 2024-07-31 07:12:01 +02:00
1_bdev_whole.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_bio_alloc.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_bio_dev.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_bio_discard.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bio_err.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bio_flags.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bio_gendisk.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bio_iter.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_bio_max_vecs.conf Change CAS_BIO_MAX_VECS value 2022-12-28 13:59:20 +01:00
1_bio_split.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_biovec.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_blk_end_req.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_blk_mq.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_blk_queue_exit_workaround_for_rhel.conf Version comparison logic fix for RHEL workaround. 2022-12-19 08:35:19 -05:00
1_blk_status.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_cas_blk_mode.conf Add support for Linux kernel up to 6.5 2024-05-14 08:47:21 +02:00
1_cas_blkdev_default_rq.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_cas_flags.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_class_create.conf Add support for Linux kernel up to 6.8 2024-05-14 08:47:45 +02:00
1_cleanup_disk.conf Kernel 6.0 support 2022-10-28 09:41:43 +02:00
1_cleanup_queue.conf Kernel 6.0 support 2022-10-28 09:41:43 +02:00
1_complete_and_exit.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_deamonize.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_dentry.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_discard_zeros.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_err_no_to_blk_sts.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_flush_flag.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_get_disk_max_part.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_get_free_memory.conf Use available memory statistic when possible 2022-10-12 08:12:42 +02:00
1_has_discard_support.conf Kernel 6.0 support 2022-10-28 09:41:43 +02:00
1_hlist.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_inode.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_kallsyms_on_each_symbol.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_make_request.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_module_mutex.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_module_put_and_exit.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_mq_flags.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_munmap.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_queue_bounce.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_queue_chunk_sectors.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_queue_flag_set.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_queue_limits.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_queue_lock.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_reread_partitions.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_set_submit_bio.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_submit_bio.conf Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00
1_timekeeping.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_vfs_ioctl.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_vmalloc.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
1_wtlh.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
2_alloc_disk.conf Add support for kernel v6.9 2024-07-08 14:16:14 +02:00
2_bdev_close.conf Add support for Linux kernel up to 6.5 2024-05-14 08:47:21 +02:00
2_bdev_open.conf Add support for Linux kernel up to 6.5 2024-05-14 08:47:21 +02:00
2_bio_cmpl.conf Add support for Linux kernel up to 6.8 2024-05-14 08:47:45 +02:00
2_generic_acct.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
2_queue_write.conf copyright/license: Add missing file extensions 2022-09-07 15:23:11 +02:00
2_set_discard_flag.conf Kernel 6.0 support 2022-10-28 09:41:43 +02:00
conf_framework.sh Add support for Linux kernel up to 6.8 2024-05-14 08:47:45 +02:00
Makefile Open CAS Linux kernel 5.18 support 2022-10-24 09:53:01 +00:00