From: Jeff Moyer <jmoyer@redhat.com>
To: Joe Lawrence <joe.lawrence@stratus.com>
Cc: <linux-kernel@vger.kernel.org>, Jens Axboe <axboe@kernel.dk>
Subject: Re: [PATCH 2/2] block,scsi: convert and handle ERR_PTR from blk_get_request
Date: Wed, 04 Jun 2014 14:07:02 -0400 [thread overview]
Message-ID: <x498upcpn09.fsf@segfault.boston.devel.redhat.com> (raw)
In-Reply-To: <20140603172646.769e90d6@jlaw-desktop.mno.stratus.com> (Joe Lawrence's message of "Tue, 3 Jun 2014 17:26:46 -0400")
Joe Lawrence <joe.lawrence@stratus.com> writes:
>> ITYM ret = PTR_ERR(next_rq), right?
>
> Oops, you are right of course. I can include this change if there should be another version (Jens?)
>
>> > diff --git a/drivers/scsi/device_handler/scsi_dh_hp_sw.c b/drivers/scsi/device_handler/scsi_dh_hp_sw.c
>> > index 084062b..1cf4019 100644
>> > --- a/drivers/scsi/device_handler/scsi_dh_hp_sw.c
>> > +++ b/drivers/scsi/device_handler/scsi_dh_hp_sw.c
>> > @@ -117,7 +117,7 @@ static int hp_sw_tur(struct scsi_device *sdev, struct hp_sw_dh_data *h)
>> >
>> > retry:
>> > req = blk_get_request(sdev->request_queue, WRITE, GFP_NOIO);
>> > - if (!req)
>> > + if (IS_ERR(req))
>> > return SCSI_DH_RES_TEMP_UNAVAIL;
>> >
>>
>> Don't we have an opportunity here to differentiate between enomem and
>> eio? I have no idea what the right SCSI_DH error would be, I'm just
>> asking the question.
> This sounded familiar, so I dug through my mailbox and found the
> following patch. When the blk_get_request patches stalled, I stopped
> working on the scsi_dh patch. But I think you would be talking about
> the introduction of something like "errno_to_SCSI_DH" below...
Wow, that's a lot more churn than I expected. ;-) I think you should go
ahead and repost this patch with the change mentioned above (you can add
my reviewed-by), and we can revisit this scsi one separately if people
are interested.
Thanks!
Jeff
next prev parent reply other threads:[~2014-06-04 18:07 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-29 20:48 [PATCH 0/2] block,scsi: fixup blk_get_request dead queue scenarios Joe Lawrence
2014-05-29 20:48 ` [PATCH 1/2] block,scsi: verify return pointer from blk_get_request Joe Lawrence
2014-06-03 19:36 ` Jeff Moyer
2014-05-29 20:48 ` [PATCH 2/2] block,scsi: convert and handle ERR_PTR " Joe Lawrence
2014-06-03 19:45 ` Jeff Moyer
2014-06-03 20:21 ` Joe Lawrence
2014-06-03 20:07 ` Jeff Moyer
2014-06-03 21:26 ` Joe Lawrence
2014-06-04 18:07 ` Jeff Moyer [this message]
2014-06-17 10:33 ` Christoph Hellwig
2014-06-17 14:25 ` Joe Lawrence
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=x498upcpn09.fsf@segfault.boston.devel.redhat.com \
--to=jmoyer@redhat.com \
--cc=axboe@kernel.dk \
--cc=joe.lawrence@stratus.com \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®