]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: add function to convert blk req op to nbd cmd
authorMike Christie <mchristi@redhat.com>
Tue, 13 Aug 2019 16:39:50 +0000 (11:39 -0500)
committerJens Axboe <axboe@kernel.dk>
Tue, 20 Aug 2019 18:44:02 +0000 (12:44 -0600)
commitf1e2487d8fdc37ba3741dcce79bbbc297cdb5c44
treefe634640e5815a485670ea4e57588cd943168414
parentf7dfae319fd24b1ecb6b58075294baaa08a2eeac
nbd: add function to convert blk req op to nbd cmd

This adds a helper function to convert a block req op to a nbd cmd type.
It will be used in the last patch to log the type in the timeout
handler.

Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c