Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1761434AbcJ1Pwz (ORCPT ); Fri, 28 Oct 2016 11:52:55 -0400 Received: from smtp.citrix.com ([66.165.176.89]:12110 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1761345AbcJ1Pwt (ORCPT ); Fri, 28 Oct 2016 11:52:49 -0400 X-IronPort-AV: E=Sophos;i="5.31,410,1473120000"; d="scan'208";a="386656934" From: David Vrabel To: Alexander Viro CC: David Vrabel , , , , "Boris Ostrovsky" , Juergen Gross Subject: [PATCH v4 0/3] libfs,xenfs: replace /proc/xen/xenbus with a symlink Date: Fri, 28 Oct 2016 16:52:36 +0100 Message-ID: <1477669959-9486-1-git-send-email-david.vrabel@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 614 Lines: 21 Using /proc/xen/xenbus can cause deadlocks on the atomic file position mutex since this file should behave like a character device and not a regular file. This is easiest to achive by making it a symlink to the existing /dev/xen/xenbus device. This requires extending simple_fill_super() to add symlinks as well as regular files. David Changes in v4: - Switch on file type in simple_fill_super() - Make xen_xenus_fops and xen_privcmd_fops static - Rebased on v4.9-rc2. - Add patch from Seth for namespace support. Changes in v3: - Rebased on v4.7-rc5. Changes in v2: - Simplified simple_fill_super() change.