]> 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)
commitea6e80c9ca4d192a418b5c5e738a538052af4556
tree5e48ee9470ecab0bd4525fcb93ab97a9f6b583d0
parent76574f8b8ea60697f4cd92a32696a66ebd66c754
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: 6ed2faa4117a ("block: fail op_is_write() requests to read-only partitions")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c