]> git.baikalelectronics.ru Git - kernel.git/commit
block: don't warn for flush on read-only device
authorJens Axboe <axboe@kernel.dk>
Tue, 14 Aug 2018 16:52:40 +0000 (10:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Tue, 14 Aug 2018 16:52:40 +0000 (10:52 -0600)
commit7726ba225f9678be87769603511c081ef5dc88a8
tree5e48ee9470ecab0bd4525fcb93ab97a9f6b583d0
parent263058642bffad588c2f6c5b05d1c472a9329b27
block: don't warn for flush on read-only device

Don't warn for a flush issued to a read-only device. It's not strictly
a writable command, as it doesn't change any on-media data by itself.

Reported-by: Stefan Agner <stefan@agner.ch>
Fixes: ed1565868cf1 ("block: fail op_is_write() requests to read-only partitions")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c