lightnvm: break the loop when rqd is not null
authorWenwei Tao <ww.tao0320@gmail.com>
Thu, 7 Jul 2016 07:54:07 +0000 (09:54 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 7 Jul 2016 14:51:52 +0000 (08:51 -0600)
commit0de2415bb730ee26ce4c90778696d3559f4312c5
treeac387b41c21c9bad29f4f44de73e9f127c88e5c3
parentf98d9ca17fbddd82980bc20abfabd5b405ecade4
lightnvm: break the loop when rqd is not null

Break the loop when rqd is not null to reduce
an unnecessary schedule.

Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/rrpc.c