Nathan Huckleberry b32d45824a dm bufio: Add DM_BUFIO_CLIENT_NO_SLEEP flag
Add an optional flag that ensures dm_bufio_client does not sleep
(primary focus is to service dm_bufio_get without sleeping). This
allows the dm-bufio cache to be queried from interrupt context.

To ensure that dm-bufio does not sleep, dm-bufio must use a spinlock
instead of a mutex. Additionally, to avoid deadlocks, special care
must be taken so that dm-bufio does not sleep while holding the
spinlock.

But again: the scope of this no_sleep is initially confined to
dm_bufio_get, so __alloc_buffer_wait_no_callback is _not_ changed to
avoid sleeping because __bufio_new avoids allocation for NF_GET.

Signed-off-by: Nathan Huckleberry <nhuck@google.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
2022-07-28 17:46:14 -04:00
..
2022-05-27 21:24:19 -07:00
2022-06-01 10:49:11 -07:00
2022-06-14 11:15:19 +02:00
2022-05-16 13:23:00 -06:00
2022-05-24 11:24:58 -03:00
2022-05-25 19:09:48 -07:00
2022-05-26 10:32:47 -07:00
2022-06-02 15:23:54 -07:00
2022-05-25 19:09:48 -07:00
2022-06-24 11:12:34 -07:00