]> sourceware.org Git - lvm2.git/commit
locking: introduce prioritized_section
authorZdenek Kabelac <zkabelac@redhat.com>
Thu, 15 Mar 2018 08:07:24 +0000 (09:07 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Thu, 15 Mar 2018 09:59:42 +0000 (10:59 +0100)
commit6365f011b00357e7f67fbe3aca0ca00ccf17ba66
tree4fc53bb2e7ce883e8e0ff411e93250b702326e28
parent043f58452a0a2c136dd6a90f1d60b063ae17a866
locking: introduce prioritized_section

Introduce prioritized_section() as a closer match to previous logic
of critical_section() that has been held over longer sequence of
ioctl commands - essentially it's matching operation on a single
cookie.

While 'critical_section()' now corresponds to locked memory - we hold
this memory only between suspend/resume thus notion of 'cookie' was
lost.

This patch restores some logic unintentionaly lost with dropping
memory locking for just activation/deactivation calls.
WHATS_NEW
lib/mm/memlock.c
lib/mm/memlock.h
This page took 0.038505 seconds and 5 git commands to generate.