RE: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-08 Thread Gao, Yunpeng
-Original Message- From: Andreas Dilger [mailto:adil...@dilger.ca] Sent: Wednesday, May 04, 2011 10:52 PM To: Gao, Yunpeng Cc: Martin K. Petersen; linux-bt...@vger.kernel.org; linux-e...@vger.kernel.org; linux-fsde...@vger.kernel.org; linux-mmc@vger.kernel.org Subject: Re: Is it possible

Re: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-05 Thread Matthew Wilcox
On Wed, May 04, 2011 at 08:51:39AM -0600, Andreas Dilger wrote: I was aware of REQ_META, but I didn't know there was any benefit to using it. I think it would be easy to set REQ_META on all ext4 metadata if there was a reason to do so. The CFQ ioscheduler pays attention to it (prioritising

Re: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-05 Thread Andreas Dilger
On May 5, 2011, at 12:10, Matthew Wilcox wrote: On Wed, May 04, 2011 at 08:51:39AM -0600, Andreas Dilger wrote: I was aware of REQ_META, but I didn't know there was any benefit to using it. I think it would be easy to set REQ_META on all ext4 metadata if there was a reason to do so. The CFQ

RE: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-04 Thread Gao, Yunpeng
Hi Park, Thanks a lot for the response. It seems similar with TRIM. So how about to consider TRIM implementation or extend it? Yes, file system set REQ_DISCARD flag to notify block device driver to execute TRIM. And I noticed there's already a flag REQ_META used for file system meta data. But

RE: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-04 Thread Gao, Yunpeng
Yes, I have been working on some changes that allow us to tag bios and pass the information out to storage. These patches have been on the back burner for a while due to other commitments. But I'll dig them out and post them later. We just discussed them a couple of weeks ago at the Linux Storage

Re: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-04 Thread Andreas Dilger
On 2011-05-04, at 5:45 AM, Gao, Yunpeng yunpeng@intel.com wrote: Yes, I have been working on some changes that allow us to tag bios and pass the information out to storage. These patches have been on the back burner for a while due to other commitments. But I'll dig them out and post them

Re: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-03 Thread Martin K. Petersen
Yunpeng == Gao, Yunpeng yunpeng@intel.com writes: Yunpeng So, my question is, is there any plan or discussion on Yunpeng supporting this feature (passing data type info to low level Yunpeng block device driver) on file system developments? Especially Yunpeng for ext4/btrfs, since now they

Re: Is it possible for the ext4/btrfs file system to pass some context related info to low level block driver?

2011-05-02 Thread Kyungmin Park
Hi, It seems similar with TRIM. So how about to consider TRIM implementation or extend it? I'm not familiar with NCQ implementation but it's also helpful to implement it. Thank you, Kyungmin Park On Tue, May 3, 2011 at 11:44 AM, Gao, Yunpeng yunpeng@intel.com wrote: Currently, some new