]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mg_disk: fix enum REQ_OP_ kbuild error
authorMike Christie <mchristi@redhat.com>
Wed, 8 Jun 2016 20:49:41 +0000 (15:49 -0500)
committerJens Axboe <axboe@fb.com>
Wed, 8 Jun 2016 21:01:16 +0000 (15:01 -0600)
commit56332f02a562390a3198525ad78cb4f558805c0f
tree06be0f2c4c46616eb4b625ffb647a1c664547949
parent47b0e50ac724d97c392f771bb46f11d9d1575242
mg_disk: fix enum REQ_OP_ kbuild error

Because we define WRITE/READ as REQ_OPs, we cannot do
switch (rq_data_dir(request))
case READ
....
case WRITE
...

without getting warnings about handling other REQ_OPs.

This just has mq_disk do a if/else like it does in other
places.

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/mg_disk.c