diff options
author | Akinobu Mita <[email protected]> | 2008-04-21 09:51:06 +0200 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2008-04-21 09:51:06 +0200 |
commit | fb199746303a6bfd6121834ec9e810471185c530 (patch) | |
tree | c50ed0dd313e7fcffddd021639473f001fcf8b05 /net/unix/sysctl_net_unix.c | |
parent | 2472892a3ce17b177cc0d8099a6391949c75abf2 (diff) |
block: fix blk_register_queue() return value
blk_register_queue() returns -ENXIO when queue->request_fn is NULL. But there
are some block drivers that call blk_register_queue() via add_disk() with
queue->request_fn == NULL. (For example, brd, loop)
Although no one checks return value of blk_register_queue(), this patch makes
it return 0 instead of -ENXIO when queue->request_fn is NULL,
Also this patch adds warning when blk_register_queue() and
blk_unregister_queue() are called with queue == NULL rather than ignore
invalid usage silently.
Signed-off-by: Akinobu Mita <[email protected]>
Cc: Jens Axboe <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions