]> asedeno.scripts.mit.edu Git - linux.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)
commit00514677ed829efa2fc688ca60a72e52695529cc
treefe634640e5815a485670ea4e57588cd943168414
parent55313e92bd17a872b99cfb5f21dd6d3ff1999bce
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