Home
last modified time | relevance | path

Searched hist:"00 c4fc3b1f590288cb3c42f36da50f49a513cfcf" (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/md/
H A Ddm-ioctl.cdiff 00c4fc3b1f590288cb3c42f36da50f49a513cfcf Tue Aug 27 17:57:03 CDT 2013 Mike Snitzer <snitzer@redhat.com> dm ioctl: increase granularity of type_lock when loading table

Hold the mapped device's type_lock before calling populate_table() since
it is where the table's type is determined based on the specified
targets. There is no need to allow concurrent table loads to race to
establish the table's targets or type.

This eliminates the need to grab the lock in dm_table_set_type().

Also verify that the type_lock is held in both dm_set_md_type() and
dm_get_md_type().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
H A Ddm-table.cdiff 00c4fc3b1f590288cb3c42f36da50f49a513cfcf Tue Aug 27 17:57:03 CDT 2013 Mike Snitzer <snitzer@redhat.com> dm ioctl: increase granularity of type_lock when loading table

Hold the mapped device's type_lock before calling populate_table() since
it is where the table's type is determined based on the specified
targets. There is no need to allow concurrent table loads to race to
establish the table's targets or type.

This eliminates the need to grab the lock in dm_table_set_type().

Also verify that the type_lock is held in both dm_set_md_type() and
dm_get_md_type().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
H A Ddm.cdiff 00c4fc3b1f590288cb3c42f36da50f49a513cfcf Tue Aug 27 17:57:03 CDT 2013 Mike Snitzer <snitzer@redhat.com> dm ioctl: increase granularity of type_lock when loading table

Hold the mapped device's type_lock before calling populate_table() since
it is where the table's type is determined based on the specified
targets. There is no need to allow concurrent table loads to race to
establish the table's targets or type.

This eliminates the need to grab the lock in dm_table_set_type().

Also verify that the type_lock is held in both dm_set_md_type() and
dm_get_md_type().

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>