open-iscsi / tcmu-runner

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

rbd: switch strtok to strtok_r #676

Closed lxbsz closed 3 years ago

lxbsz commented 3 years ago

The strtok is not thread safe, there could be several threads will call the tcmu_rbd_open() at the same time.

Signed-off-by: Xiubo Li xiubli@redhat.com

lxbsz commented 3 years ago

Might be good to include an example log snippet in the commit message.

Done.

lxbsz commented 3 years ago

Thanks @idryomov , will merge it.