scsi_debug.c (c6380ecd8e9bee7aba3d9a5a94b58168244c4a61) scsi_debug.c (8b904b5b6b58b9a29dcf3f82d936d9e7fd69fda6)
1/*
2 * vvvvvvvvvvvvvvvvvvvvvvv Original vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
3 * Copyright (C) 1992 Eric Youngdale
4 * Simulate a host adapter with 2 disks attached. Do a lot of checking
5 * to make sure that we are not getting blocks mixed up, and PANIC if
6 * anything out of the ordinary is seen.
7 * ^^^^^^^^^^^^^^^^^^^^^^^ Original ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 *

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

3892 return open_devip;
3893}
3894
3895static int scsi_debug_slave_alloc(struct scsi_device *sdp)
3896{
3897 if (sdebug_verbose)
3898 pr_info("slave_alloc <%u %u %u %llu>\n",
3899 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
1/*
2 * vvvvvvvvvvvvvvvvvvvvvvv Original vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
3 * Copyright (C) 1992 Eric Youngdale
4 * Simulate a host adapter with 2 disks attached. Do a lot of checking
5 * to make sure that we are not getting blocks mixed up, and PANIC if
6 * anything out of the ordinary is seen.
7 * ^^^^^^^^^^^^^^^^^^^^^^^ Original ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8 *

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

3892 return open_devip;
3893}
3894
3895static int scsi_debug_slave_alloc(struct scsi_device *sdp)
3896{
3897 if (sdebug_verbose)
3898 pr_info("slave_alloc <%u %u %u %llu>\n",
3899 sdp->host->host_no, sdp->channel, sdp->id, sdp->lun);
3900 queue_flag_set_unlocked(QUEUE_FLAG_BIDI, sdp->request_queue);
3900 blk_queue_flag_set(QUEUE_FLAG_BIDI, sdp->request_queue);
3901 return 0;
3902}
3903
3904static int scsi_debug_slave_configure(struct scsi_device *sdp)
3905{
3906 struct sdebug_dev_info *devip =
3907 (struct sdebug_dev_info *)sdp->hostdata;
3908

--- 1986 unchanged lines hidden ---
3901 return 0;
3902}
3903
3904static int scsi_debug_slave_configure(struct scsi_device *sdp)
3905{
3906 struct sdebug_dev_info *devip =
3907 (struct sdebug_dev_info *)sdp->hostdata;
3908

--- 1986 unchanged lines hidden ---