+15
−0
+31
−0
Loading
When device is changed, e.g. the underlying bdev is hotremoved, all sessions need to be notified. For instance, Vhost-SCSI would send an additional hotremove eventq message. That's why we introduce a helper function to iterate through all active sessions. Eventually, we may want to poll different sessions from different lcores, so there will be some kind of internal cross-lcore message management required - just like there is one for spdk_vhost_call_external_event_foreach(). For now, though, we can get away with a dumbest implementation. We still want to keep this API internal for the time being. The end-user (RPC) should only modify the device, and the whole concept of sessions should be completely encapsulated. Change-Id: I2e142632c07a23daeac15cabea4cffecf984e455 Signed-off-by:Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/418736 Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com> Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Reviewed-by:
Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>