Skip to content

Commit d07eb91

Browse files
Asias HeJosef Bacik
authored andcommitted
btrfs: Drop unused function btrfs_abort_devices()
1) This function is not used anywhere. 2) Using the blk_abort_queue() to abort the queue seems not correct. blk_abort_queue() is used for timeout handling (block/blk-timeout.c). Cc: Chris Mason <chris.mason@oracle.com> Cc: linux-btrfs@vger.kernel.org Cc: Jens Axboe <axboe@kernel.dk> Cc: linux-kernel@vger.kernel.org Signed-off-by: Asias He <asias@redhat.com>
1 parent 762f226 commit d07eb91

2 files changed

Lines changed: 0 additions & 14 deletions

File tree

‎fs/btrfs/disk-io.c‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2903,19 +2903,6 @@ int write_ctree_super(struct btrfs_trans_handle *trans,
29032903
return ret;
29042904
}
29052905

2906-
/* Kill all outstanding I/O */
2907-
void btrfs_abort_devices(struct btrfs_root *root)
2908-
{
2909-
struct list_head *head;
2910-
struct btrfs_device *dev;
2911-
mutex_lock(&root->fs_info->fs_devices->device_list_mutex);
2912-
head = &root->fs_info->fs_devices->devices;
2913-
list_for_each_entry_rcu(dev, head, dev_list) {
2914-
blk_abort_queue(dev->bdev->bd_disk->queue);
2915-
}
2916-
mutex_unlock(&root->fs_info->fs_devices->device_list_mutex);
2917-
}
2918-
29192906
void btrfs_free_fs_root(struct btrfs_fs_info *fs_info, struct btrfs_root *root)
29202907
{
29212908
spin_lock(&fs_info->fs_roots_radix_lock);

‎fs/btrfs/disk-io.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ int btrfs_add_log_tree(struct btrfs_trans_handle *trans,
8989
int btrfs_cleanup_transaction(struct btrfs_root *root);
9090
void btrfs_cleanup_one_transaction(struct btrfs_transaction *trans,
9191
struct btrfs_root *root);
92-
void btrfs_abort_devices(struct btrfs_root *root);
9392

9493
#ifdef CONFIG_DEBUG_LOCK_ALLOC
9594
void btrfs_init_lockdep(void);

0 commit comments

Comments
 (0)