]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nbd: use dev_err_ratelimited in io path
authorJosef Bacik <jbacik@fb.com>
Mon, 5 Dec 2016 21:20:29 +0000 (16:20 -0500)
committerJens Axboe <axboe@fb.com>
Thu, 8 Dec 2016 22:28:09 +0000 (15:28 -0700)
commita897b6664e9565c980f76af1c123cb0597d79822
tree7abf7529af56388742a140156cff7b3525cbaf15
parent20032ec38d1614f29c5a8e6cfc5b5326685fa99b
nbd: use dev_err_ratelimited in io path

While doing stress tests we noticed that we'd get a lot of dmesg spam if
we suddenly disconnected the nbd device out of band.  Rate limit the
messages in the io path in order to deal with this.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c