Displaying 20 results from an estimated 24 matches for "scsi_lib".
Did you mean:
scsi_id
2020 Mar 10
2
[PATCH RFC v2 01/24] scsi: add 'nr_reserved_cmds' field to the SCSI host template
...nnes Reinecke <hare at suse.com>
>
> Add a new field 'nr_reserved_cmds' to the SCSI host template to
> instruct the block layer to set aside a tag space for reserved
> commands.
>
> Signed-off-by: Hannes Reinecke <hare at suse.com>
> ---
> drivers/scsi/scsi_lib.c | 1 +
> include/scsi/scsi_host.h | 6 ++++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> index 610ee41fa54c..2967325df7a0 100644
> --- a/drivers/scsi/scsi_lib.c
> +++ b/drivers/scsi/scsi_lib.c
> @@ -1896,6 +189...
2020 Mar 10
2
[PATCH RFC v2 01/24] scsi: add 'nr_reserved_cmds' field to the SCSI host template
...nnes Reinecke <hare at suse.com>
>
> Add a new field 'nr_reserved_cmds' to the SCSI host template to
> instruct the block layer to set aside a tag space for reserved
> commands.
>
> Signed-off-by: Hannes Reinecke <hare at suse.com>
> ---
> drivers/scsi/scsi_lib.c | 1 +
> include/scsi/scsi_host.h | 6 ++++++
> 2 files changed, 7 insertions(+)
>
> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
> index 610ee41fa54c..2967325df7a0 100644
> --- a/drivers/scsi/scsi_lib.c
> +++ b/drivers/scsi/scsi_lib.c
> @@ -1896,6 +189...
2020 Mar 11
0
[PATCH RFC v2 01/24] scsi: add 'nr_reserved_cmds' field to the SCSI host template
....com>
>>
>> Add a new field 'nr_reserved_cmds' to the SCSI host template to
>> instruct the block layer to set aside a tag space for reserved
>> commands.
>>
>> Signed-off-by: Hannes Reinecke <hare at suse.com>
>> ---
>> drivers/scsi/scsi_lib.c | 1 +
>> include/scsi/scsi_host.h | 6 ++++++
>> 2 files changed, 7 insertions(+)
>>
>> diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
>> index 610ee41fa54c..2967325df7a0 100644
>> --- a/drivers/scsi/scsi_lib.c
>> +++ b/drivers/scsi/scsi...
2015 Oct 01
2
req->nr_phys_segments > queue_max_segments (was Re: kernel BUG at drivers/block/virtio_blk.c:172!)
...itialization?
>
>
> Jens, how may we get more segments than blk_queue_max_segments?
> Is driver expected to validate and drop such requests?
>
Whee! I'm not alone anymore!
I have seen similar issues even on non-mq systems; occasionally
I'm hitting this bug in drivers/scsi/scsi_lib.c:scsi_init_io()
count = blk_rq_map_sg(req->q, req, sdb->table.sgl);
BUG_ON(count > sdb->table.nents);
There are actually two problems here:
The one is that blk_rq_map_sg() requires a table (ie the last
argument), but doesn't have any indications on how large the
table is.
So on...
2015 Oct 01
2
req->nr_phys_segments > queue_max_segments (was Re: kernel BUG at drivers/block/virtio_blk.c:172!)
...itialization?
>
>
> Jens, how may we get more segments than blk_queue_max_segments?
> Is driver expected to validate and drop such requests?
>
Whee! I'm not alone anymore!
I have seen similar issues even on non-mq systems; occasionally
I'm hitting this bug in drivers/scsi/scsi_lib.c:scsi_init_io()
count = blk_rq_map_sg(req->q, req, sdb->table.sgl);
BUG_ON(count > sdb->table.nents);
There are actually two problems here:
The one is that blk_rq_map_sg() requires a table (ie the last
argument), but doesn't have any indications on how large the
table is.
So on...
2020 Apr 23
0
[PATCH RFC v2 02/24] scsi: allocate separate queue for reserved commands
...gt;>
>> But this shouldn't be exposed anywhere.? And I prefer that over having
>> magic requests/scsi_cmnd that do not have a valid ->device pointer.
>> .
>>
>
> (just looking at this again)
>
> Hi Christoph,
>
> So how would this look added in scsi_lib.c:
>
> struct scsi_cmnd *scsi_get_reserved_cmd(struct Scsi_Host *shost)
> {
> ????struct scsi_cmnd *scmd;
> ????struct request *rq;
> ????struct scsi_device *sdev = scsi_get_host_dev(shost);
>
> ????if (!sdev)
> ??????? return NULL;
>
> ????rq = blk_mq_allo...
2007 Feb 15
1
Can't mount USB drives
...n 0
USB Mass Storage device found at 11
[root /]#
But there is a /dev/sda1. Then after a few minutes, I get:
scsi: Device offlined - not ready after error recovery: host 7 channel 0
id 0 lun 0
7:0:0:0: Illegal state transition deleted->offline
Badness in scsi_device_set_state at drivers/scsi/scsi_lib.c:1702
[<f88246d9>] scsi_device_set_state+0xd2/0xdd [scsi_mod]
[<f8822903>] scsi_eh_offline_sdevs+0x49/0x5e [scsi_mod]
[<f8822de9>] scsi_unjam_host+0x15a/0x16b [scsi_mod]
[<f8822f0c>] scsi_error_handler+0x112/0x15a [scsi_mod]
[<f8822dfa>] scsi_error_handler+0...
2008 May 30
5
[PATCH 1/4] pvSCSI driver
pvSCSI backend driver
Signed-off-by: Tomonari Horikoshi <t.horikoshi@jp.fujitsu.com>
Signed-off-by: Jun Kamada <kama@jp.fujitsu.com>
-----
Jun Kamada
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel
2015 Oct 01
0
req->nr_phys_segments > queue_max_segments (was Re: kernel BUG at drivers/block/virtio_blk.c:172!)
...> Jens, how may we get more segments than blk_queue_max_segments?
>> Is driver expected to validate and drop such requests?
>>
> Whee! I'm not alone anymore!
>
> I have seen similar issues even on non-mq systems; occasionally
> I'm hitting this bug in drivers/scsi/scsi_lib.c:scsi_init_io()
>
> count = blk_rq_map_sg(req->q, req, sdb->table.sgl);
> BUG_ON(count > sdb->table.nents);
>
> There are actually two problems here:
> The one is that blk_rq_map_sg() requires a table (ie the last
> argument), but doesn't have a...
2006 Jan 06
2
3ware disk failure -> hang
I've got an i386 server running centos 4.2 with 3 3ware controllers in it
-- an 8006-2 for the system disks and 2 7500-8s. On the 7500s, I'm
running an all software RAID50. This morning I came in to find the system
hung. Turns out a disk went overnight on one of the 7500s, and rather
than a graceful failover I got this:
Jan 6 01:03:58 $SERVER kernel: 3w-xxxx: scsi2: Command
2020 Mar 11
6
[PATCH RFC v2 02/24] scsi: allocate separate queue for reserved commands
On Tue, Mar 10, 2020 at 09:08:56PM +0000, John Garry wrote:
> On 10/03/2020 18:32, Christoph Hellwig wrote:
> > On Wed, Mar 11, 2020 at 12:25:28AM +0800, John Garry wrote:
> > > From: Hannes Reinecke <hare at suse.com>
> > >
> > > Allocate a separate 'reserved_cmd_q' for sending reserved commands.
> >
> > Why? Reserved command
2020 Mar 11
6
[PATCH RFC v2 02/24] scsi: allocate separate queue for reserved commands
On Tue, Mar 10, 2020 at 09:08:56PM +0000, John Garry wrote:
> On 10/03/2020 18:32, Christoph Hellwig wrote:
> > On Wed, Mar 11, 2020 at 12:25:28AM +0800, John Garry wrote:
> > > From: Hannes Reinecke <hare at suse.com>
> > >
> > > Allocate a separate 'reserved_cmd_q' for sending reserved commands.
> >
> > Why? Reserved command
2007 Jan 02
0
[PATCH 1/4] add scsi-target and IO_CMD_EPOLL_WAIT patches
...;list_lock, flags);
+
+- if (likely(cmd != NULL))
+- kmem_cache_free(shost->cmd_pool->slab, cmd);
+-
+- put_device(&sdev->sdev_gendev);
++ __scsi_put_command(cmd->device->host, cmd, &sdev->sdev_gendev);
+ }
+ EXPORT_SYMBOL(scsi_put_command);
+
+diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
+index a0cd6de..d94ea0f 100644
+--- a/drivers/scsi/scsi_lib.c
++++ b/drivers/scsi/scsi_lib.c
+@@ -804,7 +804,7 @@ static struct scsi_cmnd *scsi_end_reques
+ return NULL;
+ }
+
+-static struct scatterlist *scsi_alloc_sgtable(struct scsi_cmnd *cmd, gfp_t gfp_mask)
++stru...
2006 Nov 01
19
pciback for usb-controller and usb-storage on x86_64 ends in Oops
Hi!
I tried to pcipassthrough usb-controllers to domu to use it with a
memory-stick.
First xen complained that the driver needs write-access to its
configuration space, so I added these to pci-quirks.
Since it still didn''t work I also added the device to pci-permissive but
I still get an errormessage with Oops (at the end of this email) when
sticking in the memory-stick.
I tried
2006 Nov 01
19
pciback for usb-controller and usb-storage on x86_64 ends in Oops
Hi!
I tried to pcipassthrough usb-controllers to domu to use it with a
memory-stick.
First xen complained that the driver needs write-access to its
configuration space, so I added these to pci-quirks.
Since it still didn''t work I also added the device to pci-permissive but
I still get an errormessage with Oops (at the end of this email) when
sticking in the memory-stick.
I tried
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...elevator.c | 290 ++++++++++++++++----------
block/noop-iosched.c | 78 +++++--
drivers/block/nbd.c | 3 +-
drivers/block/virtio_blk.c | 2 +-
drivers/md/dm.c | 11 +-
drivers/scsi/scsi_error.c | 5 +-
drivers/scsi/scsi_lib.c | 11 +-
drivers/scsi/scsi_transport_fc.c | 3 +-
include/linux/blk-mq.h | 97 +++++++++
include/linux/blkdev.h | 44 +---
include/linux/elevator.h | 58 +++---
include/scsi/scsi_device.h | 1 +
26 files changed, 715 insertions(+), 518 dele...
2012 Apr 20
1
[PATCH] multiqueue: a hodge podge of things
...elevator.c | 290 ++++++++++++++++----------
block/noop-iosched.c | 78 +++++--
drivers/block/nbd.c | 3 +-
drivers/block/virtio_blk.c | 2 +-
drivers/md/dm.c | 11 +-
drivers/scsi/scsi_error.c | 5 +-
drivers/scsi/scsi_lib.c | 11 +-
drivers/scsi/scsi_transport_fc.c | 3 +-
include/linux/blk-mq.h | 97 +++++++++
include/linux/blkdev.h | 44 +---
include/linux/elevator.h | 58 +++---
include/scsi/scsi_device.h | 1 +
26 files changed, 715 insertions(+), 518 dele...
2015 Oct 01
4
kernel BUG at drivers/block/virtio_blk.c:172!
Hi,
I have a virtual machine which fails to boot linux-4.1.8 while mounting
file systems:
> * Mounting local filesystem ...
> ------------[ cut here ]------------
> kernel BUG at drivers/block/virtio_blk.c:172!
> invalid opcode: 000 [#1] SMP
> Modules linked in: pcspkr psmouse dm_log_userspace virtio_net e1000 fuse nfs lockd grace sunrpc fscache dm_snapshot dm_bufio dm_mirror
2015 Oct 01
4
kernel BUG at drivers/block/virtio_blk.c:172!
Hi,
I have a virtual machine which fails to boot linux-4.1.8 while mounting
file systems:
> * Mounting local filesystem ...
> ------------[ cut here ]------------
> kernel BUG at drivers/block/virtio_blk.c:172!
> invalid opcode: 000 [#1] SMP
> Modules linked in: pcspkr psmouse dm_log_userspace virtio_net e1000 fuse nfs lockd grace sunrpc fscache dm_snapshot dm_bufio dm_mirror
2020 Mar 11
0
[PATCH -next 000/491] treewide: use fallthrough;
...-
drivers/scsi/qla2xxx/qla_target.c | 6 +-
drivers/scsi/qla4xxx/ql4_os.c | 2 +-
drivers/scsi/qlogicpti.c | 20 +--
drivers/scsi/scsi_error.c | 29 +++--
drivers/scsi/scsi_ioctl.c | 4 +-
drivers/scsi/scsi_lib.c | 2 +-
drivers/scsi/smartpqi/smartpqi_init.c | 17 ++-
drivers/scsi/sr.c | 4 +-
drivers/scsi/st.c | 8 +-
drivers/scsi/sun3_scsi.c | 6 +-
drivers/scsi/sym53c8xx_2/sym_fw.c...