[PATCH v2] target: fix tcm_loop build errors when SCSI=m

2018-08-06 Thread Randy Dunlap
.kernel.org Cc: Bart Van Assche Cc: sta...@vger.kernel.org # 2.6.39++ --- v2: add Fixes: and Cc:stable drivers/target/loopback/Kconfig |1 + 1 file changed, 1 insertion(+) --- linux-next-20180806.orig/drivers/target/loopback/Kconfig +++ linux-next-20180806/drivers/target/loopback/Kconfig @@

Re: [PATCH v2] target: fix tcm_loop build errors when SCSI=m

2018-08-06 Thread Randy Dunlap
On 08/06/2018 04:29 PM, Randy Dunlap wrote: > On 08/06/2018 04:26 PM, Bart Van Assche wrote: >> On Mon, 2018-08-06 at 16:20 -0700, Randy Dunlap wrote: >>> Fixes: 3703b2c5d041 ("[SCSI] tcm_loop: Add multi-fabric Linux/SCSI LLD >>>fabric module") >> >> From drivers/target/Kconfig on Linus'

Re: [PATCH] aha1542: convert to DMA mapping API

2018-08-06 Thread Ondrej Zary
On Thursday 02 August 2018 15:11:05 Christoph Hellwig wrote: > aha1542 is one of the last users of the legacy isa_*_to_bus APIs, which > also isn't portable enough. Convert it to the proper DMA mapping API. > > Signed-off-by: Christoph Hellwig > --- > drivers/scsi/aha1542.c | 112

Re: [PATCH v2] target: fix tcm_loop build errors when SCSI=m

2018-08-06 Thread Randy Dunlap
On 08/06/2018 04:26 PM, Bart Van Assche wrote: > On Mon, 2018-08-06 at 16:20 -0700, Randy Dunlap wrote: >> Fixes: 3703b2c5d041 ("[SCSI] tcm_loop: Add multi-fabric Linux/SCSI LLD >>fabric module") > > From drivers/target/Kconfig on Linus' master branch: > > menuconfig TARGET_CORE >

Re: [PATCH v2] target: fix tcm_loop build errors when SCSI=m

2018-08-06 Thread Bart Van Assche
On Mon, 2018-08-06 at 16:29 -0700, Randy Dunlap wrote: > On 08/06/2018 04:26 PM, Bart Van Assche wrote: > > On Mon, 2018-08-06 at 16:20 -0700, Randy Dunlap wrote: > > > Fixes: 3703b2c5d041 ("[SCSI] tcm_loop: Add multi-fabric Linux/SCSI LLD > > >fabric module") > > > > From

Re: [PATCH v2] target: fix tcm_loop build errors when SCSI=m

2018-08-06 Thread Bart Van Assche
On Mon, 2018-08-06 at 16:20 -0700, Randy Dunlap wrote: > Fixes: 3703b2c5d041 ("[SCSI] tcm_loop: Add multi-fabric Linux/SCSI LLD >fabric module") >From drivers/target/Kconfig on Linus' master branch: menuconfig TARGET_CORE tristate "Generic Target Core Mod (TCM) and ConfigFS

Re: [PATCH v3] mpt3sas: correct reset of smid while clearing scsi tracker

2018-08-06 Thread Bart Van Assche
On Sat, 2018-08-04 at 18:56 +0530, Sreekanth Reddy wrote: > No Bart, their is no race condition here. Since chain lookup table > entry is uniquely accessed using smid value. And this smid (which is > scmd->request->tag +1) is unique for each IO request. And > _base_get_chain_buffer_tracker()

Re: [RFC PATCH 3/5] streamline REQ_OP_READ-WRITE access

2018-08-06 Thread Douglas Gilbert
On 2018-08-06 01:41 AM, Damien Le Moal wrote: On 2018/08/06 13:51, Douglas Gilbert wrote: Make the two block layer operations most frequently used (REQ_OP_READ and REQ_OP_WRITE) bypass the switch statements in the submission and response paths. Assume these two enums are 0 and 1 which allows a

Re: [RFC PATCH 4/5] streamline some logical operations

2018-08-06 Thread Douglas Gilbert
On 2018-08-06 01:41 AM, Damien Le Moal wrote: On 2018/08/06 13:51, Douglas Gilbert wrote: Re-arrange some logic to lessen the number of checks. With logical ANDs put the least likely first, with logical ORs put the most likely first. Also add conditional hints on the assumed fastpath.

Re: [RFC PATCH 1/5] add tweakable bounds_check flag, now off by default

2018-08-06 Thread Douglas Gilbert
On 2018-08-06 01:41 AM, Damien Le Moal wrote: Douglas, On 2018/08/06 13:51, Douglas Gilbert wrote: Add bounds_check "rw" attribute to the sd driver. It controls whether each read/write operation submission does an "out of range" bounds check and a LBA/number_of_blocks alignment bounds check.

Re: [RFC PATCH 2/5] break sd_done sense processing out to own function

2018-08-06 Thread Douglas Gilbert
On 2018-08-06 01:41 AM, Damien Le Moal wrote: On 2018/08/06 13:51, Douglas Gilbert wrote: Break out the sense key handling in the sd_done() (response) path into its own function. Note that the sense key only needs to be inspected when a SCSI status of Check Condition is returned. It looks