OSDN Git Service

sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN
authorYoung Xiao <YangX92@hotmail.com>
Wed, 28 Nov 2018 12:36:39 +0000 (12:36 +0000)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Nov 2018 13:23:12 +0000 (06:23 -0700)
commita11f6ca9aef989b56cd31ff4ee2af4fb31a172ec
tree2c0e93f3b4c1ad0a91131633d738d9d3ead22ed3
parent5f0ed774ed2914decfd397569fface997532e94d
sunvdc: Do not spin in an infinite loop when vio_ldc_send() returns EAGAIN

__vdc_tx_trigger should only loop on EAGAIN a finite
number of times.

See commit adddc32d6fde ("sunvnet: Do not spin in an
infinite loop when vio_ldc_send() returns EAGAIN") for detail.

Signed-off-by: Young Xiao <YangX92@hotmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/sunvdc.c