commit | 10888129783cc8daeeb9c47942876b917532b58c | [log] [tgz] |
---|---|---|
author | Javier González <jg@lightnvm.io> | Fri Jun 30 17:56:37 2017 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Jun 30 11:08:18 2017 -0600 |
tree | 1658076640b2113a91e191f72e4033c8d40b6a9f | |
parent | 653cbb8472b88f0781d9191685bd6603f344214d [diff] |
lightnvm: pblk: schedule if data is not ready When user threads place data into the write buffer, they reserve space and do the memory copy out of the lock. As a consequence, when the write thread starts persisting data, there is a chance that it is not copied yet. In this case, avoid polling, and schedule before retrying. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <matias@cnexlabs.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>