nbd: add FUA op support
authorShaun McDowell <shaunjmcdowell@gmail.com>
Fri, 26 May 2017 03:55:54 +0000 (23:55 -0400)
committerJens Axboe <axboe@fb.com>
Tue, 30 May 2017 14:20:25 +0000 (08:20 -0600)
commit685c9b24ad5090e7a74781c4784fc12e0a04a176
tree76b566b20b4629798098ed02242dc0f61ff9a0eb
parent9bddeb2a5b981507cbe2d7bdb545c32f204109c7
nbd: add FUA op support

NBD userland client and server have FUA (forced unit access) support
and flags defined. Make NBD kernel module recognize NBD_FLAG_SEND_FUA,
enable FUA on the queue, and forward FUA requests to the server.

Signed-off-by: Shaun McDowell <shaunjmcdowell@gmail.com>
Reviewed-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nbd.c
include/uapi/linux/nbd.h