From: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
To: zaitcev@redhat.com
Cc: akpm@linux-foundation.org, oliver.pntr@gmail.com,
linux-kernel@vger.kernel.org, linux-mm@kvack.org,
linux-fsdevel@vger.kernel.org, jmorris@namei.org,
linux-usb@vger.kernel.org
Subject: Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS
Date: Tue, 12 Feb 2008 10:46:12 +0900 [thread overview]
Message-ID: <20080212104612S.fujita.tomonori@lab.ntt.co.jp> (raw)
In-Reply-To: <20080208234619.385bcab9.zaitcev@redhat.com>
On Fri, 8 Feb 2008 23:46:19 -0800
Pete Zaitcev <zaitcev@redhat.com> wrote:
> On Tue, 5 Feb 2008 14:05:06 -0800, Andrew Morton <akpm@linux-foundation.org> wrote:
>
> > > > http://students.zipernowsky.hu/~oliverp/kernel/regression_2624/
>
> > I think ub.c is basically abandoned in favour of usb-storage.
> > If so, perhaps we should remove or disble ub.c?
>
> Looks like it's just Tomo or Jens made a mistake when converting to
> the new s/g API. Nothing to be too concerned about. I know I should've
> reviewed their patch closer, but it seemed too simple...
I guess I can put the blame for this on Jens' commit (45711f1a) ;)
On a serious note, it seems that two scatter lists per request leaded
to this bug. Can the scatter list in struct ub_request be removed?
Thanks,
> -- Pete
>
> Fix up the conversion to sg_init_table().
>
> Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
>
> --- a/drivers/block/ub.c
> +++ b/drivers/block/ub.c
> @@ -657,7 +657,6 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq)
> if ((cmd = ub_get_cmd(lun)) == NULL)
> return -1;
> memset(cmd, 0, sizeof(struct ub_scsi_cmd));
> - sg_init_table(cmd->sgv, UB_MAX_REQ_SG);
>
> blkdev_dequeue_request(rq);
>
> @@ -668,6 +667,7 @@ static int ub_request_fn_1(struct ub_lun *lun, struct request *rq)
> /*
> * get scatterlist from block layer
> */
> + sg_init_table(&urq->sgv[0], UB_MAX_REQ_SG);
> n_elem = blk_rq_map_sg(lun->disk->queue, rq, &urq->sgv[0]);
> if (n_elem < 0) {
> /* Impossible, because blk_rq_map_sg should not hit ENOMEM. */
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next prev parent reply other threads:[~2008-02-12 1:46 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-28 8:31 Oliver Pinter (Pintér Olivér)
2008-01-28 16:25 ` Oliver Pinter (Pintér Olivér)
2008-01-28 16:27 ` Oliver Pinter (Pintér Olivér)
2008-02-05 5:39 ` Andrew Morton
2008-02-05 10:02 ` James Morris
2008-02-05 13:46 ` Stephen Smalley
2008-02-05 18:40 ` Andrew Morton
[not found] ` <6101e8c40802051115v12d3c02br24873ef1014dbea9@mail.gmail.com>
[not found] ` <6101e8c40802051321l13268239m913fd90f56891054@mail.gmail.com>
2008-02-05 21:48 ` Oliver Pinter
2008-02-05 22:05 ` Andrew Morton
2008-02-05 22:19 ` Pete Zaitcev
2008-02-05 22:29 ` Oliver Pinter
2008-02-05 22:35 ` Oliver Pinter
2008-02-09 7:46 ` Pete Zaitcev
2008-02-12 1:46 ` FUJITA Tomonori [this message]
2008-02-12 2:12 ` Pete Zaitcev
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=20080212104612S.fujita.tomonori@lab.ntt.co.jp \
--to=fujita.tomonori@lab.ntt.co.jp \
--cc=akpm@linux-foundation.org \
--cc=jmorris@namei.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-usb@vger.kernel.org \
--cc=oliver.pntr@gmail.com \
--cc=zaitcev@redhat.com \
/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