]> git.baikalelectronics.ru Git - kernel.git/commit
block: warn if sharing request queue across gendisks
authorOmar Sandoval <osandov@fb.com>
Tue, 28 Mar 2017 23:12:15 +0000 (16:12 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 29 Mar 2017 14:09:08 +0000 (08:09 -0600)
commitfe9b24861763a419777502098690fed87408d8a8
tree7df8f5fb1b67e34ed19af17476ee2ed01bb2c673
parent6cc016452407908f8689cf0774d1f3d0c81f48aa
block: warn if sharing request queue across gendisks

Now that the remaining drivers have been converted to one request queue
per gendisk, let's warn if a request queue gets registered more than
once. This will catch future drivers which might do it inadvertently or
any old drivers that I may have missed.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-sysfs.c
include/linux/blkdev.h