gostor / gotgt

Simple Golang iSCSI Target framework
Apache License 2.0
261 stars 49 forks source link

func (s *ISCSITargetDriver) handler should consider goroutine safety issue #43

Open orzhang opened 7 years ago

orzhang commented 7 years ago

goroutine use number of CPU to run as simultaneously. However, we didn't consider the thread safe issue. We should simply use 1 CPU to dispatch the gorutine to avoid this issue and then use channel and mutex to enhance it.