#ifndef CORKING_H #define CORKING_H #include extern void set_tcp_cork(int fd); extern void set_tcp_uncork(int fd); extern void set_udp_cork(int fd); extern void set_udp_uncork(int fd); extern void set_sock_cork(int fd, bool is_udp); extern void set_sock_uncork(int fd, bool is_udp); #endif /* CORKING_H */ h/cgit.cgi/linux/net-next.git/atom/?h=nds-private-remove' type='application/atom+xml'/>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Moyer <jmoyer@redhat.com>2017-01-09 15:20:31 -0500
committerJens Axboe <axboe@fb.com>2017-01-10 13:30:50 -0700
commit25b4acfc7de0fc4da3bfea3a316f7282c6fbde81 (patch)
tree2a499c0910f948316a23003cacc43a29619299a5
parenta14d749fcebe97ddf6af6db3d1f6ece85c9ddcb9 (diff)
nbd: blk_mq_init_queue returns an error code on failure, not NULL
Additionally, don't assign directly to disk->queue, otherwise blk_put_queue (called via put_disk) will choke (panic) on the errno stored there. Bug found by code inspection after Omar found a similar issue in virtio_blk. Compile-tested only. Signed-off-by: Jeff Moyer <jmoyer@redhat.com> Reviewed-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Josef Bacik <jbacik@fb.com> Signed-off-by: Jens Axboe <axboe@fb.com>