Skip to content

Commit

Permalink
dm ioctl: fix stale comment above dm_get_inactive_table()
Browse files Browse the repository at this point in the history
dm_table_put() was replaced by dm_put_live_table().

Signed-off-by: Junxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
  • Loading branch information
Junxiao Bi authored and Mike Snitzer committed Feb 9, 2015
1 parent cf35248 commit 88e2f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,8 +639,8 @@ static int check_name(const char *name)

/*
* On successful return, the caller must not attempt to acquire
* _hash_lock without first calling dm_table_put, because dm_table_destroy
* waits for this dm_table_put and could be called under this lock.
* _hash_lock without first calling dm_put_live_table, because dm_table_destroy
* waits for this dm_put_live_table and could be called under this lock.
*/
static struct dm_table *dm_get_inactive_table(struct mapped_device *md, int *srcu_idx)
{
Expand Down

0 comments on commit 88e2f90

Please sign in to comment.