]> git.baikalelectronics.ru Git - kernel.git/commit
block: misc updates to blk_get_queue()
authorTejun Heo <tj@kernel.org>
Tue, 13 Dec 2011 23:33:38 +0000 (00:33 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 13 Dec 2011 23:33:38 +0000 (00:33 +0100)
commit98dc099000a574dfeb928fbd21849b37eae8ba2a
tree0fb3b7344ead06d08dbd77470445821817c439b7
parent11bfae193d6e48a42622a29ca784e6aa57e170df
block: misc updates to blk_get_queue()

* blk_get_queue() is peculiar in that it returns 0 on success and 1 on
  failure instead of 0 / -errno or boolean.  Update it such that it
  returns %true on success and %false on failure.

* Make sure the caller checks for the return value.

* Separate out __blk_get_queue() which doesn't check whether @q is
  dead and put it in blk.h.  This will be used later.

This patch doesn't introduce any functional changes.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-core.c
block/blk.h
block/bsg.c
block/genhd.c
drivers/scsi/scsi_scan.c
include/linux/blkdev.h