* [PATCH v4 0/3] scsi: fix internal write cache issue on usb hdd.
@ 2012-06-11 13:27 Namjae Jeon
0 siblings, 0 replies; 5+ messages in thread
From: Namjae Jeon @ 2012-06-11 13:27 UTC (permalink / raw)
To: James.Bottomley, gregkh, mdharm-usb, stern, sshtylyov, bvanassche
Cc: linux-usb, linux-scsi, linux-kernel, Namjae Jeon
The numbers of USB HDDs(All USB HDD I checked) does not respond
correctly to scsi mode sense command for retrieving the write cache
page status. Even though write cache is enabled by default, due to
scsi driver assume that cache is not enabled which in turn might lead
to loss of data since data still will be in cache.
This result that all filesystems is not stable on USB HDD when the
device is unplugged abruptly, even though these are having journaling
feature. Our first trying is that scsi driver send ATA command
(ATA Pass through, #58) to USB HDD after failure from normal routine to
know write cache enable.
We have known it is dangerous after testing several USB HDD. some of
HDD is stalled by this command(A-DATA HDD). So we tried to make the
patch James's suggestion(usb quirk) on version 2 that add product ID
and verdor ID of USB HDD to USB quirk list after checking write cache.
All filesystem will be stable on USB HDD registered in quirk list.
And it will be updated continuously.
scsi: set to WCE if usb cache quirk is present.
usb: storage: add support for write cache quirk on usb hdd.
usb: storage: update usb devices for write cache quirk in quirk.
drivers/scsi/sd.c | 9 +++++++--
include/scsi/scsi_device.h | 1 +
drivers/usb/storage/scsiglue.c | 5 +++++
drivers/usb/storage/usb.c | 5 ++++-
include/linux/usb_usual.h | 4 +++-
drivers/usb/storage/unusual_devs.h | 24 ++++++++++++++++++++++++
Documentation/kernel-parameters.txt | 2 ++
7 files changed, 46 insertions(+), 4 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH v4 0/3] scsi: fix internal write cache issue on usb hdd.
@ 2012-06-13 15:27 Namjae Jeon
2012-06-15 3:51 ` Namjae Jeon
0 siblings, 1 reply; 5+ messages in thread
From: Namjae Jeon @ 2012-06-13 15:27 UTC (permalink / raw)
To: James.Bottomley, gregkh, mdharm-usb, stern, sshtylyov, bvanassche
Cc: linux-usb, linux-scsi, linux-kernel, Namjae Jeon
From: Namjae Jeon <namjae.jeon@samsung.com>
The numbers of USB HDDs(All USB HDD I checked) does not respond
correctly to scsi mode sense command for retrieving the write cache
page status. Even though write cache is enabled by default, due to
scsi driver assume that cache is not enabled which in turn might lead
to loss of data since data still will be in cache.
This result that all filesystems is not stable on USB HDD when the
device is unplugged abruptly, even though these are having journaling
feature. Our first trying is that scsi driver send ATA command
(ATA Pass through, #58) to USB HDD after failure from normal routine to
know write cache enable.
We have known it is dangerous after testing several USB HDD. some of
HDD is stalled by this command(A-DATA HDD). So we tried to make the
patch James's suggestion(usb quirk) on version 2 that add product ID
and verdor ID of USB HDD to USB quirk list after checking write cache.
All filesystem will be stable on USB HDD registered in quirk list.
And it will be updated continuously.
scsi: set to WCE if usb cache quirk is present.
usb: storage: add support for write cache quirk on usb hdd.
usb: storage: update usb devices for write cache quirk in quirk.
drivers/scsi/sd.c | 9 +++++++--
include/scsi/scsi_device.h | 1 +
drivers/usb/storage/scsiglue.c | 5 +++++
drivers/usb/storage/usb.c | 5 ++++-
include/linux/usb_usual.h | 4 +++-
drivers/usb/storage/unusual_devs.h | 24 ++++++++++++++++++++++++
Documentation/kernel-parameters.txt | 2 ++
7 files changed, 46 insertions(+), 4 deletions(-)
--
1.7.9.5
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v4 0/3] scsi: fix internal write cache issue on usb hdd.
2012-06-13 15:27 Namjae Jeon
@ 2012-06-15 3:51 ` Namjae Jeon
[not found] ` <CAKYAXd9sbVL9Ut4nZOg5Mt3ZuCOouUq64d-ifjtbO0TnaU1XvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Namjae Jeon @ 2012-06-15 3:51 UTC (permalink / raw)
To: gregkh
Cc: linux-usb, linux-scsi, linux-kernel, Namjae Jeon, James.Bottomley,
mdharm-usb, stern, sshtylyov, bvanassche
Hi Greg.
Would you check this patch-set ?
Thanks.
2012/6/14, Namjae Jeon <linkinjeon@gmail.com>:
> From: Namjae Jeon <namjae.jeon@samsung.com>
>
> The numbers of USB HDDs(All USB HDD I checked) does not respond
> correctly to scsi mode sense command for retrieving the write cache
> page status. Even though write cache is enabled by default, due to
> scsi driver assume that cache is not enabled which in turn might lead
> to loss of data since data still will be in cache.
> This result that all filesystems is not stable on USB HDD when the
> device is unplugged abruptly, even though these are having journaling
> feature. Our first trying is that scsi driver send ATA command
> (ATA Pass through, #58) to USB HDD after failure from normal routine to
> know write cache enable.
> We have known it is dangerous after testing several USB HDD. some of
> HDD is stalled by this command(A-DATA HDD). So we tried to make the
> patch James's suggestion(usb quirk) on version 2 that add product ID
> and verdor ID of USB HDD to USB quirk list after checking write cache.
> All filesystem will be stable on USB HDD registered in quirk list.
> And it will be updated continuously.
>
> scsi: set to WCE if usb cache quirk is present.
> usb: storage: add support for write cache quirk on usb hdd.
> usb: storage: update usb devices for write cache quirk in quirk.
>
> drivers/scsi/sd.c | 9 +++++++--
> include/scsi/scsi_device.h | 1 +
> drivers/usb/storage/scsiglue.c | 5 +++++
> drivers/usb/storage/usb.c | 5 ++++-
> include/linux/usb_usual.h | 4 +++-
> drivers/usb/storage/unusual_devs.h | 24 ++++++++++++++++++++++++
> Documentation/kernel-parameters.txt | 2 ++
> 7 files changed, 46 insertions(+), 4 deletions(-)
> --
> 1.7.9.5
>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v4 0/3] scsi: fix internal write cache issue on usb hdd.
[not found] ` <CAKYAXd9sbVL9Ut4nZOg5Mt3ZuCOouUq64d-ifjtbO0TnaU1XvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-06-15 21:29 ` Greg KH
2012-06-26 7:40 ` Namjae Jeon
0 siblings, 1 reply; 5+ messages in thread
From: Greg KH @ 2012-06-15 21:29 UTC (permalink / raw)
To: Namjae Jeon
Cc: linux-usb-u79uwXL29TY76Z2rM5mHXA,
linux-scsi-u79uwXL29TY76Z2rM5mHXA,
linux-kernel-u79uwXL29TY76Z2rM5mHXA, Namjae Jeon,
James.Bottomley-JuX6DAaQMKPCXq6kfMZ53/egYHeGw8Jk,
mdharm-usb-JGfshJpz5UybPZpvUQj5UqxOck334EZe,
stern-nwvwT67g6+6dFdvTe/nMLpVzexx5G7lz,
sshtylyov-Igf4POYTYCDQT0dZR+AlfA, bvanassche-HInyCGIudOg
A: No.
Q: Should I include quotations after my reply?
http://daringfireball.net/2007/07/on_top
On Fri, Jun 15, 2012 at 12:51:58PM +0900, Namjae Jeon wrote:
> Hi Greg.
>
> Would you check this patch-set ?
I can't do much about scsi core patches, sorry. If James acks them, I
can take them through my tree.
thanks,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH v4 0/3] scsi: fix internal write cache issue on usb hdd.
2012-06-15 21:29 ` Greg KH
@ 2012-06-26 7:40 ` Namjae Jeon
0 siblings, 0 replies; 5+ messages in thread
From: Namjae Jeon @ 2012-06-26 7:40 UTC (permalink / raw)
To: James.Bottomley
Cc: Greg KH, linux-usb, linux-scsi, linux-kernel, Namjae Jeon,
mdharm-usb, stern, sshtylyov, bvanassche
Hi James.
Would you please check these patches ?
I am waiting for your response.
Thanks.
2012/6/16, Greg KH <gregkh@linuxfoundation.org>:
>
> A: No.
> Q: Should I include quotations after my reply?
>
> http://daringfireball.net/2007/07/on_top
>
> On Fri, Jun 15, 2012 at 12:51:58PM +0900, Namjae Jeon wrote:
>> Hi Greg.
>>
>> Would you check this patch-set ?
>
>
> I can't do much about scsi core patches, sorry. If James acks them, I
> can take them through my tree.
>
> thanks,
>
> greg k-h
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2012-06-26 7:40 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-11 13:27 [PATCH v4 0/3] scsi: fix internal write cache issue on usb hdd Namjae Jeon
-- strict thread matches above, loose matches on Subject: below --
2012-06-13 15:27 Namjae Jeon
2012-06-15 3:51 ` Namjae Jeon
[not found] ` <CAKYAXd9sbVL9Ut4nZOg5Mt3ZuCOouUq64d-ifjtbO0TnaU1XvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-06-15 21:29 ` Greg KH
2012-06-26 7:40 ` Namjae Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).