From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: Damien Le Moal <damien.lemoal@wdc.com>
Cc: "Martin K. Petersen" <martin.petersen@oracle.com>,
Christoph Hellwig <hch@lst.de>, Jens Axboe <axboe@kernel.dk>,
linux-block@vger.kernel.org, linux-scsi@vger.kernel.org,
MPT-FusionLinux.pdl@broadcom.com, Hannes Reinecke <hare@suse.de>,
Bart Van Assche <bart.vanassche@sandisk.com>
Subject: Re: [PATCH 0/3] Separate zone requests from medium access requests
Date: Tue, 28 Feb 2017 22:21:47 -0500 [thread overview]
Message-ID: <yq1shmxsmus.fsf@oracle.com> (raw)
In-Reply-To: <6f1c8be1-9366-b32e-621e-8b05f22a1753@wdc.com> (Damien Le Moal's message of "Wed, 1 Mar 2017 12:02:14 +0900")
>>>>> "Damien" == Damien Le Moal <damien.lemoal@wdc.com> writes:
Damien,
Damien> The problem remains that the mpt3sas driver needs fixing. As you
Damien> suggest, we can do that in sd, or directly in mpt3sas. I tried
Damien> to do a clean fix in sd, but always end up consuming a lot of
Damien> aspirin because of all the potential corner cases to deal
Damien> with.
What? You expected this to be easy? :)
FWIW, I'm perfectly happy with the desire to shuffle the ZBC-specifics
over to sd_zbc.c.
Damien> The file sd.h has the inline function
Damien> scsi_medium_access_command() defined. We could move that to
Damien> include/scsi/scsi.h (or scsi_proto.h) and use it in place of
Damien> blk_rq_accesses_medium() in the mpt3sas driver to not force
Damien> unaligned resid corrections for zone commands. Would that be
Damien> acceptable ?
I'd still rather keep it in sd. If you don't have sufficient supplies of
aspirin for the sd_completed_bytes() approach then I'm OK with a simple
tweak to sd_done(). We need something we can reasonably Cc: to stable
for 4.10.
You are welcome to key off of scsi_medium_access_command() if you like
but I don't think it's necessary. Just having a default for the req_op
switch should suffice.
I believe that was your original sd approach. If you post it again I'll
have another look.
And then I'll put the bigger completion rework back on my todo list.
--
Martin K. Petersen Oracle Linux Engineering
next prev parent reply other threads:[~2017-03-01 4:54 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-28 10:25 [PATCH 0/3] Separate zone requests from medium access requests Damien Le Moal
2017-02-28 10:25 ` [PATCH 1/3] block: Introduce blk_rq_accesses_medium() Damien Le Moal
2017-02-28 10:25 ` [PATCH 2/3] block: Separate zone requests from medium access requests Damien Le Moal
2017-02-28 16:57 ` Bart Van Assche
2017-03-09 5:27 ` [lkp-robot] [block] 670fcc25d7: kernel_BUG_at_block/blk-core.c kernel test robot
2017-02-28 10:25 ` [PATCH 3/3] mpt3sas: Do not check resid for non medium access commands Damien Le Moal
2017-02-28 16:02 ` [PATCH 0/3] Separate zone requests from medium access requests Christoph Hellwig
2017-02-28 16:16 ` Bart Van Assche
2017-03-01 2:52 ` Martin K. Petersen
2017-03-01 3:02 ` Damien Le Moal
2017-03-01 3:21 ` Martin K. Petersen [this message]
2017-03-01 9:06 ` Damien Le Moal
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=yq1shmxsmus.fsf@oracle.com \
--to=martin.petersen@oracle.com \
--cc=MPT-FusionLinux.pdl@broadcom.com \
--cc=axboe@kernel.dk \
--cc=bart.vanassche@sandisk.com \
--cc=damien.lemoal@wdc.com \
--cc=hare@suse.de \
--cc=hch@lst.de \
--cc=linux-block@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox