# \[PREEMPT\_RT PATCH 0/2\] Fix warnings in blktrace

- From: Wander Lairson Costa \<hidden\>
- Date: 2021-12-10 20:42:52 
- List: linux-rt-users
- Page: https://ratatoskr.run/linux-rt-users/2021/12/1604449
- Thread: https://ratatoskr.run/linux-rt-users/2021/12/1604449/t.md

```text
These two patches fix wrong usage of lock primitives with
CONFIG_PREEMPT_RT in the blktrace code.

Wander Lairson Costa (2):
  block: Avoid sleeping function called from invalid context bug
  blktrace: switch trace spinlock to a raw spinlock

 block/blk-cgroup.c      |  4 ++--
 kernel/trace/blktrace.c | 14 +++++++-------
 2 files changed, 9 insertions(+), 9 deletions(-)

-- 
2.27.0

```
