coreos / go-tcmu

Go SCSI emulation via the Linux TCM in Userspace module
Apache License 2.0
53 stars 26 forks source link

When some program on the same host enabled netlink support for target_core_user.ko, go-tcmu program hangs #15

Open nak3 opened 6 years ago

nak3 commented 6 years ago

description

When some program that uses target_core_user.ko enables netlink support (TCMU_ATTR_SUPP_KERN_CMD_REPLY), go-tcmu hangs.

reproduce steps

  1. Run tcmu-runner (to enable netlink reply support).
  # ./tcmu-runner
  // You can stop tcmu-runner process as it keeps the netlink support enabled //
  1. Start go-tcmu program
  # go run cmd/tcmufile/tcmufile.go /tmp/foo
  ... snip ...
  DEBU[0000] Setting /sys/kernel/config/target/core/user_30/foo/control: dev_config=go-tcmu//foo
  DEBU[0000] Setting /sys/kernel/config/target/core/user_30/foo/control: hw_block_size=1024
  DEBU[0000] Setting /sys/kernel/config/target/core/user_30/foo/control: async=1
  DEBU[0000] Setting /sys/kernel/config/target/core/user_30/foo/enable: 1
  //  hang forever //