md: cleanup bio op / flags handling in raid1_write_request
authorChristoph Hellwig <hch@lst.de>
Wed, 25 Jan 2017 10:15:20 +0000 (11:15 +0100)
committerJens Axboe <axboe@fb.com>
Fri, 27 Jan 2017 22:08:35 +0000 (15:08 -0700)
commit309bd96af9e26da3038661bf5cdad780eef49dd9
treedb2d5a0511f027fd5364efbb96032e0b2adb7f33
parentf924ba70c1b12706c6679d793202e8f4c125f7ae
md: cleanup bio op / flags handling in raid1_write_request

No need for the local variables, the bio is still live and we can just
assign the bits we want directly.  Make me wonder why we can't assign
all the bio flags to start with.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/md/raid1.c