Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S945386AbdDTRGB (ORCPT ); Thu, 20 Apr 2017 13:06:01 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:45561 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S944067AbdDTRF7 (ORCPT ); Thu, 20 Apr 2017 13:05:59 -0400 Date: Thu, 20 Apr 2017 19:05:50 +0200 From: Gerald Schaefer To: Dan Williams Cc: linux-nvdimm@ml01.01.org, linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, dm-devel@redhat.com, linux-fsdevel@vger.kernel.org, hch@lst.de Subject: Re: [PATCH v3] dcssblk: add dax_operations support In-Reply-To: <149264113824.36586.1220609927071019352.stgit@dwillia2-desk3.amr.corp.intel.com> References: <149264113824.36586.1220609927071019352.stgit@dwillia2-desk3.amr.corp.intel.com> Organization: IBM Deutschland Research & Development GmbH / Vorsitzende des Aufsichtsrats: Martina Koederitz / Geschaeftsfuehrung: Dirk Wittkopp / Sitz der Gesellschaft: Boeblingen / Registergericht: Amtsgericht Stuttgart, HRB 243294 X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.23; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17042017-0040-0000-0000-0000036F7DE7 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17042017-0041-0000-0000-000025098A7E Message-Id: <20170420190550.6a31fa6c@thinkpad> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-04-20_16:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1703280000 definitions=main-1704200135 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 853 Lines: 20 On Wed, 19 Apr 2017 15:32:38 -0700 Dan Williams wrote: > Setup a dax_dev to have the same lifetime as the dcssblk block device > and add a ->direct_access() method that is equivalent to > dcssblk_direct_access(). Once fs/dax.c has been converted to use > dax_operations the old dcssblk_direct_access() will be removed. > > Reported-by: Gerald Schaefer > Signed-off-by: Dan Williams > --- > Changes since v2: > * fix return code in the alloc_dax() failure case (Gerald) > * assign dax_dev to dev_info and kill local variable (Gerald) > > drivers/s390/block/Kconfig | 1 + > drivers/s390/block/dcssblk.c | 55 +++++++++++++++++++++++++++++++++++------- > 2 files changed, 47 insertions(+), 9 deletions(-) Acked-by: Gerald Schaefer