block: don't allow writing to the poll queue attribute
authorChristoph Hellwig <hch@lst.de>
Tue, 12 Oct 2021 11:12:25 +0000 (13:12 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 18 Oct 2021 12:17:36 +0000 (06:17 -0600)
commita614dd2280356df0c79300c49d82b7e0c8b31f24
treebffe181a9418f7eaa560cfea5698ee37080bd805
parent3e08773c3841e9db7a520908cc2b136a77d275ff
block: don't allow writing to the poll queue attribute

The poll attribute is a historic artefact from before when we had
explicit poll queues that require driver specific configuration.
Just print a warning when writing to the attribute.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Tested-by: Mark Wunderlich <mark.wunderlich@intel.com>
Link: https://lore.kernel.org/r/20211012111226.760968-16-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-sysfs.c