Skip to content

Commit

Permalink
dm: remove unnecessary wrapper around blk_lld_busy
Browse files Browse the repository at this point in the history
There is no need for DM to export a wrapper around the already exported
blk_lld_busy().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Mike Snitzer committed Mar 31, 2015
1 parent 09c2d53 commit 52b0991
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
2 changes: 1 addition & 1 deletion drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -1627,7 +1627,7 @@ static int __pgpath_busy(struct pgpath *pgpath)
{
struct request_queue *q = bdev_get_queue(pgpath->path.dev->bdev);

return dm_underlying_device_busy(q);
return blk_lld_busy(q);
}

/*
Expand Down
6 changes: 0 additions & 6 deletions drivers/md/dm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2006,12 +2006,6 @@ static void dm_request_fn(struct request_queue *q)
dm_put_live_table(md, srcu_idx);
}

int dm_underlying_device_busy(struct request_queue *q)
{
return blk_lld_busy(q);
}
EXPORT_SYMBOL_GPL(dm_underlying_device_busy);

static int dm_lld_busy(struct request_queue *q)
{
int r;
Expand Down
5 changes: 0 additions & 5 deletions include/linux/device-mapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,4 @@ static inline unsigned long to_bytes(sector_t n)
return (n << SECTOR_SHIFT);
}

/*-----------------------------------------------------------------
* Helper for block layer and dm core operations
*---------------------------------------------------------------*/
int dm_underlying_device_busy(struct request_queue *q);

#endif /* _LINUX_DEVICE_MAPPER_H */

0 comments on commit 52b0991

Please sign in to comment.