Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 88e2f901 authored by Junxiao Bi's avatar Junxiao Bi Committed by Mike Snitzer
Browse files

dm ioctl: fix stale comment above dm_get_inactive_table()



dm_table_put() was replaced by dm_put_live_table().

Signed-off-by: default avatarJunxiao Bi <junxiao.bi@oracle.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent cf352487
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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)
{