Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Pete Zaitcev
Date: Monday, February 11, 2008 - 7:12 pm

On Tue, 12 Feb 2008 10:46:12 +0900, FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> wrote:


Good question. It's an eyesore to be sure. The duplication exists
for the sake of retries combined with the separation of requests
from commands.

Please bear with me, if you're curious: commands can be launched
without requests (at probe time, for instance, or when sense is
requested). So, they need an s/g table. But then, the lifetime of
a request is greater than than of a command, in case of a retry
especially. Therefore a request needs the s/g table too.

So, one way to kill this duplication is to mandate that a
request existed for every command. It seemed like way more code
than just one memcpy() when I wrote it.

Another way would be to make commands flexible, e.g. sometimes with
just a virtual address and size, sometimes with an s/g table.
If you guys make struct scatterlist illegal to copy with memcpy
one day, this is probably what I'll do.

-- Pete
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Oliver Pinter, (Tue Feb 5, 2:48 pm)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Andrew Morton, (Tue Feb 5, 3:05 pm)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Pete Zaitcev, (Tue Feb 5, 3:19 pm)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Oliver Pinter, (Tue Feb 5, 3:29 pm)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Oliver Pinter, (Tue Feb 5, 3:35 pm)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Pete Zaitcev, (Sat Feb 9, 12:46 am)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, FUJITA Tomonori, (Mon Feb 11, 6:46 pm)
Re: [2.6.24 REGRESSION] BUG: Soft lockup - with VFS, Pete Zaitcev, (Mon Feb 11, 7:12 pm)