summaryrefslogtreecommitdiff
path: root/targetcli/ui_node.py
diff options
context:
space:
mode:
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2019-07-31 17:31:33 +0530
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>2019-07-31 17:49:43 +0530
commitb85561a4e8b6613a87a5f055a1365e2a97594de6 (patch)
tree22156b570af90cd7cacc67f0b7df7b2e649ad1df /targetcli/ui_node.py
parent85031ad48b011f5626cd0a287749abcaa145277b (diff)
downloadtargetcli-b85561a4e8b6613a87a5f055a1365e2a97594de6.tar.gz
targetcli: serialize multiple requests
Problem: ------- targetcli/rtslib cannot handle parallel requests at the moment. Read more about this at http://bit.ly/targetcli-parallel-requests-issue $ for i in {1..10}; do \ targetcli /backstores/fileio create ${i} /tmp/file${i} 10M& done Created fileio 1 with size 10485760 This _Backstore already exists in configFS This _Backstore already exists in configFS This _Backstore already exists in configFS This _Backstore already exists in configFS This _Backstore already exists in configFS Created fileio 6 with size 10485760 Created fileio 2 with size 10485760 This _Backstore already exists in configFS Created fileio 8 with size 10485760 Created fileio 9 with size 10485760 bails-out most of the time with above errors and sometimes even crashes. Solution: -------- Serialize/defend the parallel requests by simply taking a wait lock at targetcli level, so that only one request can be processed by targetcli at any given point in time. Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
Diffstat (limited to 'targetcli/ui_node.py')
0 files changed, 0 insertions, 0 deletions