commit | 709c8667ada1fa26ac941bb875892afc0046b3e2 | [log] [tgz] |
---|---|---|
author | Matias Bjorling <m@bjorling.me> | Wed Nov 26 14:45:48 2014 -0700 |
committer | Jens Axboe <axboe@fb.com> | Wed Nov 26 14:45:48 2014 -0700 |
tree | 5d8c74e5ac0bc869bec66503dde23e7fae70a6ab | |
parent | fa573f72790c2c2b9bfd758c5d33959af4a39915 [diff] |
null_blk: boundary check queue_mode and irqmode When either queue_mode or irq_mode parameter is set outside its boundaries, the driver will not complete requests. This stalls driver initialization when partitions are probed. Fix by setting out of bound values to the parameters default. Signed-off-by: Matias Bjørling <m@bjorling.me> Updated by me to have the parse+check in just one function. Signed-off-by: Jens Axboe <axboe@fb.com>