Re: [PATCH] scsi: core: Cap initial sdev queue depth at shost.can_queue

2021-04-20 Thread John Garry
On 20/04/2021 01:02, Ming Lei wrote: On Tue, Apr 20, 2021 at 12:06:24AM +0800, John Garry wrote: Function sdev_store_queue_depth() enforces that the sdev queue depth cannot exceed shost.can_queue. However, the LLDD may still set cmd_per_lun > can_queue, which leads to an initial sdev queue dept

Re: [PATCH] scsi: core: Cap initial sdev queue depth at shost.can_queue

2021-04-19 Thread Ming Lei
On Tue, Apr 20, 2021 at 12:06:24AM +0800, John Garry wrote: > Function sdev_store_queue_depth() enforces that the sdev queue depth cannot > exceed shost.can_queue. > > However, the LLDD may still set cmd_per_lun > can_queue, which leads to an > initial sdev queue depth greater than can_queue. > >

[PATCH] scsi: core: Cap initial sdev queue depth at shost.can_queue

2021-04-19 Thread John Garry
Function sdev_store_queue_depth() enforces that the sdev queue depth cannot exceed shost.can_queue. However, the LLDD may still set cmd_per_lun > can_queue, which leads to an initial sdev queue depth greater than can_queue. Stop this happened by capping initial sdev queue depth at can_queue. Sig