open-iscsi / tcmu-runner

A daemon that handles the userspace side of the LIO TCM-User backstore.
Apache License 2.0
190 stars 148 forks source link

A possible deadlock issue #681

Closed ryancaicse closed 2 years ago

ryancaicse commented 2 years ago

It seems that lock rdev->caw_lock is not released before Line 1736. Should it be a bug? https://github.com/open-iscsi/tcmu-runner/blob/b4d1656ecc5500b85416e1014669669434ddb291/tcmur_cmd_handler.c#L1731-L1736

lxbsz commented 2 years ago

No, please check the handle_caw_read_cbk/handle_caw_write_cbk, the lock will be released there later for aio.

ryancaicse commented 2 years ago

@lxbsz Thank you for your reply!