Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751962AbbEIQAc (ORCPT ); Sat, 9 May 2015 12:00:32 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:60926 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751866AbbEIQA2 (ORCPT ); Sat, 9 May 2015 12:00:28 -0400 Date: Sat, 9 May 2015 09:00:26 -0700 From: Christoph Hellwig To: Matias Bj??rling Cc: hch@infradead.org, axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com, javier@paletta.io Subject: Re: [PATCH v3 2/7] block: add REQ_NVM_GC for targets gc Message-ID: <20150509160026.GB16058@infradead.org> References: <1429712816-10336-1-git-send-email-m@bjorling.me> <1429712816-10336-3-git-send-email-m@bjorling.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1429712816-10336-3-git-send-email-m@bjorling.me> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1137 Lines: 23 On Wed, Apr 22, 2015 at 04:26:51PM +0200, Matias Bj??rling wrote: > In preparation for Open-Channel SSDs. We introduce a special request for > open-channel ssd targets that must perform garbage collection. > > Requests are divided into two types. The user and target specific. User > IOs are from fs, user-space, etc. While target specific are IOs that are > issued in the background by targets. Usually garbage collection actions. > > For the target to issue garbage collection requests, it is a requirement > that a logical address is locked over two requests. One read and one > write. If a write to the logical address comes in from user-space, a > race-condition might occur and garbage collection will write out-dated > data. > > By introducing this flag, the target can manually control locking of > logical addresses. Seems like this should be a new ->cmd_type instead of a flag. -- 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/