# \[PATCH 0/2 v4\] block: Fix deadlock when merging requests with BFQ

- From: Jan Kara \<jack@suse.cz\>
- Date: 2021-06-23 09:36:43 
- List: linux-block
- Page: https://ratatoskr.run/linux-block/2021/06/6403608
- Thread: https://ratatoskr.run/linux-block/2021/06/6403608/t.md

```text
Hello,

This patch series fixes a lockdep complaint and a possible deadlock that
can happen when blk_mq_sched_try_insert_merge() merges and frees a request.
Jens, can you please merge the series? It seems to have slipped through last
time when I posted it. Thanks!

Changes since v3:
* Rebased on top of for-next branch in axboe/linux-block.git

Changes since v2:
* Added reviewed-by tags

Changes since v1:
* Remove patch disabling recursing request merging during request insertion
* Modified BFQ to cleanup merged request already in its .merge_requests handler
* Added code to handle multiple requests that need freeing after being merged

								Honza
```
