diff options
| author | Tang Junhui <tang.junhui.linux@gmail.com> | 2018-10-08 20:41:10 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2018-10-08 08:19:42 -0600 |
| commit | dd0c91793b7c2658ea32c6b3a2247a8ceca45dc0 (patch) | |
| tree | 110f5bd2d12063e627654cbbd2aa24b2e94e2a42 /tools/perf/scripts/python | |
| parent | bcache: use REQ_PRIO to indicate bio for metadata (diff) | |
| download | linux-dd0c91793b7c2658ea32c6b3a2247a8ceca45dc0.tar.gz linux-dd0c91793b7c2658ea32c6b3a2247a8ceca45dc0.zip | |
bcache: fix ioctl in flash device
When doing ioctl in flash device, it will call ioctl_dev() in super.c,
then we should not to get cached device since flash only device has
no backend device. This patch just move the jugement dc->io_disable
to cached_dev_ioctl() to make ioctl in flash device correctly.
Fixes: 0f0709e6bfc3c ("bcache: stop bcache device when backing device is offline")
Signed-off-by: Tang Junhui <tang.junhui.linux@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: Coly Li <colyli@suse.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
