mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-10 00:00:24 +03:00
Correctly print out error from io_setup()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
3f7b0b0832
commit
2225e9a372
@ -278,9 +278,10 @@ __attribute__((constructor(102)))
|
|||||||
static void blkdev_init(void)
|
static void blkdev_init(void)
|
||||||
{
|
{
|
||||||
struct task_struct *p;
|
struct task_struct *p;
|
||||||
|
long err = io_setup(256, &aio_ctx);
|
||||||
|
|
||||||
if (io_setup(256, &aio_ctx))
|
if (err)
|
||||||
die("io_setup() error: %m");
|
die("io_setup() error: %s", strerror(-err));
|
||||||
|
|
||||||
p = kthread_run(aio_completion_thread, NULL, "aio_completion");
|
p = kthread_run(aio_completion_thread, NULL, "aio_completion");
|
||||||
BUG_ON(IS_ERR(p));
|
BUG_ON(IS_ERR(p));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user