Skip to content

rbd: fix a deadlock around header_rwsem and lock_rwsem

Ilya Dryomov ceph-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4rbd: move rbd_dev_refresh() definitiondrivers/block/rbd.c+33 -350 replies
2/4rbd: decouple header read-in from updating rbd_dev->headerdrivers/block/rbd.c+114 -920 replies
3/4rbd: decouple parent info read-in from updating rbd_devdrivers/block/rbd.c+80 -620 replies
4/4rbd: take header_rwsem in rbd_dev_refresh() only when updatingdrivers/block/rbd.c+11 -111 reply

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchDongsheng Yang
1/4
2/4
3/4
4/4R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] rbd: fix a deadlock around header_rwsem and lock_rwsem

Hello,

This fixes a deadlock which can occur when a watch error is hit while the RBD driver is still recovering from a previous watch error. This lock cycle was discovered during some performance tests.

Thanks,

Ilya

Ilya Dryomov (4):
rbd: move rbd_dev_refresh() definition
rbd: decouple header read-in from updating rbd_dev->header
rbd: decouple parent info read-in from updating rbd_dev
rbd: take header_rwsem in rbd_dev_refresh() only when updating

 drivers/block/rbd.c | 412 ++++++++++++++++++++++++--------------------
 1 file changed, 225 insertions(+), 187 deletions(-)
Signature · 1 line
2.41.0