loop.c (4ccb6aea4b3eb97c94575d1ed4bf10744169f082) loop.c (f363b089be0a39fe4282c688118a51d21f952bc7)
1/*
2 * linux/drivers/block/loop.c
3 *
4 * Written by Theodore Ts'o, 3/29/93
5 *
6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is
7 * permitted under the GNU General Public License.
8 *

--- 1696 unchanged lines hidden (view full) ---

1705 struct loop_cmd *cmd = blk_mq_rq_to_pdu(rq);
1706
1707 cmd->rq = rq;
1708 kthread_init_work(&cmd->work, loop_queue_work);
1709
1710 return 0;
1711}
1712
1/*
2 * linux/drivers/block/loop.c
3 *
4 * Written by Theodore Ts'o, 3/29/93
5 *
6 * Copyright 1993 by Theodore Ts'o. Redistribution of this file is
7 * permitted under the GNU General Public License.
8 *

--- 1696 unchanged lines hidden (view full) ---

1705 struct loop_cmd *cmd = blk_mq_rq_to_pdu(rq);
1706
1707 cmd->rq = rq;
1708 kthread_init_work(&cmd->work, loop_queue_work);
1709
1710 return 0;
1711}
1712
1713static struct blk_mq_ops loop_mq_ops = {
1713static const struct blk_mq_ops loop_mq_ops = {
1714 .queue_rq = loop_queue_rq,
1715 .init_request = loop_init_request,
1716};
1717
1718static int loop_add(struct loop_device **l, int i)
1719{
1720 struct loop_device *lo;
1721 struct gendisk *disk;

--- 339 unchanged lines hidden ---
1714 .queue_rq = loop_queue_rq,
1715 .init_request = loop_init_request,
1716};
1717
1718static int loop_add(struct loop_device **l, int i)
1719{
1720 struct loop_device *lo;
1721 struct gendisk *disk;

--- 339 unchanged lines hidden ---